Class: Dino::Apis::Item
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, **args) ⇒ Item
constructor
A new instance of Item.
- #load ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(id:, **args) ⇒ Item
Returns a new instance of Item.
9 10 11 12 |
# File 'lib/dino/apis/item.rb', line 9 def initialize(id:, **args) @id = id super(**args) end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
8 9 10 |
# File 'lib/dino/apis/item.rb', line 8 def id @id end |
Class Method Details
.find(**args) ⇒ Object
4 5 6 |
# File 'lib/dino/apis/item.rb', line 4 def self.find(**args) new(**args).load end |