Class: Balanced::Transaction
- Inherits:
-
Object
- Object
- Balanced::Transaction
- Includes:
- Resource
- Defined in:
- lib/balanced/resources/transaction.rb
Overview
Any transfer, or potential transfer of, funds from or to, your Marketplace. E.g. a Credit, Debit, Refund, or Hold.
Instance Attribute Summary
Attributes included from Resource
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Transaction
constructor
A new instance of Transaction.
Methods included from Resource
#copy_from, #destroy, #find, included, #method_missing, #reload, #save, #warn_on_positional
Constructor Details
#initialize(attributes = {}) ⇒ Transaction
Returns a new instance of Transaction.
8 9 10 11 12 13 14 |
# File 'lib/balanced/resources/transaction.rb', line 8 def initialize attributes = {} Balanced::Utils.stringify_keys! attributes unless attributes.has_key? 'uri' attributes['uri'] = self.class.uri end super attributes end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Balanced::Resource