Module: Panda::Destroyers

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

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/panda/modules/destroyers.rb', line 4

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#deleteObject



18
19
20
21
22
# File 'lib/panda/modules/destroyers.rb', line 18

def delete
  uri = replace_pattern_with_self_variables(self.class.one_path)
  response = connection.delete(uri)
  !!response['deleted']
end