Class: Chartmogul::Import::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/chartmogul/import/base.rb

Direct Known Subclasses

Customer, DataSource, Invoice, Subscription, Transaction

Instance Method Summary collapse

Methods inherited from Base

method_missing

Instance Method Details

#create(attributes) ⇒ Object


8
9
10
# File 'lib/chartmogul/import/base.rb', line 8

def create(attributes)
  create_resource(attributes)
end

#delete(uuid:) ⇒ Object


12
13
14
# File 'lib/chartmogul/import/base.rb', line 12

def delete(uuid:)
  Chartmogul.delete_resource([resource_end_point, uuid].join("/"))
end

#list(options = {}) ⇒ Object


4
5
6
# File 'lib/chartmogul/import/base.rb', line 4

def list(options = {})
  list_resource(options)
end