class Source
- Source
- Reference
- Object
Included Modules
- JSON::Serializable
- Models::Shared::Id
Defined in:
models/source.crConstructors
- .find(id : Int32) : Source
- .new(id : Int32 | Nil, name : String | Nil, url : String | Nil, user_id : Int32)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #id : Int32 | Nil
- #id=(id : Int32 | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #save
- #url : String | Nil
- #url=(url : String | Nil)
- #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, name : String | Nil, url : String | Nil, user_id : Int32)
#