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