Class: MC2P::ChargeObjectItemMixin
- Inherits:
-
ObjectItemMixin
- Object
- ObjectItemMixin
- MC2P::ChargeObjectItemMixin
- Defined in:
- lib/mixins.rb
Overview
Allows make charge an object item
Instance Attribute Summary
Attributes inherited from ObjectItemMixin
#_deleted, #json_dict, #resource
Instance Method Summary collapse
-
#charge(data = nil) ⇒ Object
- Refund the object item Params:
data
-
data to send Returns: response dictionary.
- Refund the object item Params:
Methods inherited from ObjectItemMixin
#id_required_and_not_deleted, #initialize, #to_s
Constructor Details
This class inherits a constructor from MC2P::ObjectItemMixin
Instance Method Details
#charge(data = nil) ⇒ Object
Refund the object item Params:
data
-
data to send
Returns: response dictionary
165 166 167 168 169 170 171 |
# File 'lib/mixins.rb', line 165 def charge(data = nil) id_required_and_not_deleted @resource.charge( @json_dict[@id_property], data ) end |