Class: Thingdeck::Collections::Thing

Inherits:
NestedItem show all
Defined in:
lib/thingdeck/collections/thing.rb

Instance Method Summary collapse

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