Module: ChartMogul::API::Actions::DestroyWithParams

Included in:
SubscriptionEvent
Defined in:
lib/chartmogul/api/actions/destroy_with_params.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
# File 'lib/chartmogul/api/actions/destroy_with_params.rb', line 7

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

Instance Method Details

#destroy_with_params!Object



11
12
13
14
15
16
# File 'lib/chartmogul/api/actions/destroy_with_params.rb', line 11

def destroy_with_params!
  handling_errors do
    connection.delete(resource_path.path, instance_attributes)
  end
  true
end