Class: Finix::Transfer
- Inherits:
-
Object
- Object
- Finix::Transfer
- Includes:
- HypermediaRegistry, Resource
- Defined in:
- lib/finix/resources/transfer.rb
Instance Attribute Summary
Attributes included from HalResource
Instance Method Summary collapse
Methods included from HypermediaRegistry
Methods included from Resource
#copy_from, #fetch, #hydrate, included, #initialize, #refresh, #sanitize, #save, #to_s
Methods included from HalResource
#load_page_from_response!, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Finix::HalResource
Instance Method Details
#reverse(args = 0) ⇒ Object
8 9 10 11 |
# File 'lib/finix/resources/transfer.rb', line 8 def reverse(args=0) atts = args.is_a?(Hash) ? {}.merge(args) : {:refund_amount => args} self.reversals.create atts end |