Module: ChartMogul::API::Actions::Custom

Included in:
ChartMogul::Account, Customer, Customers, DataSource, Enrichment::Customers, Enrichment::DeprecatedCustomer, Ping, Plan, Subscription
Defined in:
lib/chartmogul/api/actions/custom.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/custom.rb', line 7

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

Instance Method Details

#custom!(http_method, http_path, body_data = {}) ⇒ Object



15
16
17
18
# File 'lib/chartmogul/api/actions/custom.rb', line 15

def custom!(http_method, http_path, body_data = {})
  json = custom_without_assign!(http_method, http_path, body_data)
  assign_all_attributes(json)
end

#custom_without_assign!(http_method, http_path, body_data = {}) ⇒ Object



11
12
13
# File 'lib/chartmogul/api/actions/custom.rb', line 11

def custom_without_assign!(http_method, http_path, body_data = {})
  self.class.custom_without_assign!(http_method, http_path, body_data)
end