Class: Balanced::Credit
- Inherits:
-
Object
- Object
- Balanced::Credit
- Includes:
- Resource
- Defined in:
- lib/balanced_ach/resources/credit.rb
Overview
A Credit represents a transfer of funds from your Marketplace’s escrow account to a Merchant’s Account within your Marketplace.
By default, a Credit is sent to the most recently added funding destination associated with an Account. You may specify a specific funding source.
Instance Attribute Summary
Attributes included from Resource
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Credit
constructor
A new instance of Credit.
Methods included from Resource
#copy_from, #destroy, #find, included, #method_missing, #reload, #save
Constructor Details
#initialize(attributes = {}) ⇒ Credit
Returns a new instance of Credit.
11 12 13 14 15 16 17 |
# File 'lib/balanced_ach/resources/credit.rb', line 11 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