Class: Thingdeck::Collections::Thing
- Inherits:
-
NestedItem
- Object
- NestedItem
- Thingdeck::Collections::Thing
- Defined in:
- lib/thingdeck/collections/thing.rb
Instance Method Summary collapse
-
#initialize(wrapper) ⇒ Thing
constructor
A new instance of Thing.
- #remove(cid, params = {}) ⇒ Object
Methods inherited from NestedItem
#all, #create, #destroy, #find, #update
Constructor Details
#initialize(wrapper) ⇒ Thing
Returns a new instance of Thing.
4 5 6 |
# File 'lib/thingdeck/collections/thing.rb', line 4 def initialize(wrapper) super(wrapper, 'collections', 'things') end |
Instance Method Details
#remove(cid, params = {}) ⇒ Object
8 9 10 |
# File 'lib/thingdeck/collections/thing.rb', line 8 def remove(cid, params = {}) @wrapper.perform_request { |c| c.delete(url(cid), params) } end |