Module: ChartMogul::API::Actions::Custom
- Included in:
- 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
- #custom!(http_method, http_path, body_data = {}) ⇒ Object
- #custom_without_assign!(http_method, http_path, body_data = {}) ⇒ Object
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/chartmogul/api/actions/custom.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#custom!(http_method, http_path, body_data = {}) ⇒ Object
13 14 15 16 |
# File 'lib/chartmogul/api/actions/custom.rb', line 13 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
9 10 11 |
# File 'lib/chartmogul/api/actions/custom.rb', line 9 def custom_without_assign!(http_method, http_path, body_data = {}) self.class.custom_without_assign!(http_method, http_path, body_data) end |