Class: Thingdeck::Collection
Instance Method Summary collapse
-
#initialize(wrapper) ⇒ Collection
constructor
A new instance of Collection.
- #things ⇒ Object
- #update ⇒ Object
Methods inherited from Item
#all, #create, #destroy, #find
Constructor Details
#initialize(wrapper) ⇒ Collection
Returns a new instance of Collection.
3 4 5 |
# File 'lib/thingdeck/collection.rb', line 3 def initialize(wrapper) super(wrapper, 'collections') end |
Instance Method Details
#things ⇒ Object
7 8 9 |
# File 'lib/thingdeck/collection.rb', line 7 def things @things ||= Collections::Thing.new(@wrapper) end |
#update ⇒ Object
11 12 13 |
# File 'lib/thingdeck/collection.rb', line 11 def update raise NotImplementedError end |