class Story
- Story
- Reference
- Object
Included Modules
- JSON::Serializable
- Models::Shared::Id
Defined in:
models/story.crConstructors
- .find(id : Int32) : Story
- .new(id : Int32 | Nil, score : Int32, title : String, url : String, external_id : String, favorited_at : Time, user_id : Int32, source_id : Int32)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #external_id : String
- #external_id=(external_id : String)
- #favorited_at : Time
- #favorited_at=(favorited_at : Time)
- #id : Int32 | Nil
- #id=(id : Int32 | Nil)
- #save
- #score : Int32
- #score=(score : Int32)
- #source_id : Int32
- #source_id=(source_id : Int32)
- #title : String
- #title=(title : String)
- #url : String
- #url=(url : String)
- #user_id : Int32
- #user_id=(user_id : Int32)
Instance methods inherited from module Models::Shared::Id
id! : Int32
id!
Constructor Detail
def self.new(id : Int32 | Nil, score : Int32, title : String, url : String, external_id : String, favorited_at : Time, user_id : Int32, source_id : Int32)
#