Class: MC2P::ChargeResourceMixin
- Inherits:
-
ActionsResourceMixin
- Object
- ResourceMixin
- ActionsResourceMixin
- MC2P::ChargeResourceMixin
- Defined in:
- lib/mixins.rb
Overview
Allows send action requests of charge
Instance Method Summary collapse
-
#charge(resource_id, data = nil) ⇒ Object
- Params:
resource_id - id to request
data -
data to send Returns: response dictionary.
- id to request
- Params:
Methods inherited from ActionsResourceMixin
#_one_item_action, #detail_action_url
Methods inherited from ResourceMixin
#_one_item, #detail_url, #initialize
Constructor Details
This class inherits a constructor from MC2P::ResourceMixin
Instance Method Details
#charge(resource_id, data = nil) ⇒ Object
Params:
resource_id-
id to request
data-
data to send
Returns: response dictionary
399 400 401 402 403 404 |
# File 'lib/mixins.rb', line 399 def charge(resource_id, data = nil) _one_item_action('post200', resource_id, 'charge', data) end |