Module: ChartMogul::API::Actions::Destroy
- Included in:
- Contact, Customer, DataSource, Invoice, Note, Opportunity, Plan, PlanGroup
- Defined in:
- lib/chartmogul/api/actions/destroy.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.rb', line 7 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#destroy! ⇒ Object
11 12 13 14 15 16 |
# File 'lib/chartmogul/api/actions/destroy.rb', line 11 def destroy! handling_errors do connection.delete("#{resource_path.apply(instance_attributes)}/#{uuid}") end true end |