Module: Panda::Destroyers::ClassMethods

Defined in:
lib/panda/modules/destroyers.rb

Instance Method Summary collapse

Instance Method Details

#delete(id) ⇒ Object



10
11
12
13
14
# File 'lib/panda/modules/destroyers.rb', line 10

def delete(id)
  uri = create_rest_url(one_path,{:id =>id})
  response = connection.delete(uri)
  !!response['deleted']
end