Class: Spree::BankPayments::AccountData
- Inherits:
-
Data
- Object
- Data
- Spree::BankPayments::AccountData
- Defined in:
- app/models/spree/bank_payments/account_data.rb
Overview
One account as reported by a provider, in the gem's normalised shape. The reconciler maps its provider's response into this -- the database and views never see provider-specific schemas.
Instance Attribute Summary collapse
-
#currency ⇒ Object
readonly
Returns the value of attribute currency.
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#provider_account_id ⇒ Object
readonly
Returns the value of attribute provider_account_id.
Instance Method Summary collapse
-
#initialize(details: [], **rest) ⇒ AccountData
constructor
A new instance of AccountData.
Constructor Details
#initialize(details: [], **rest) ⇒ AccountData
Returns a new instance of AccountData.
7 8 9 |
# File 'app/models/spree/bank_payments/account_data.rb', line 7 def initialize(details: [], **rest) super(details: details, **rest) end |
Instance Attribute Details
#currency ⇒ Object (readonly)
Returns the value of attribute currency
6 7 8 |
# File 'app/models/spree/bank_payments/account_data.rb', line 6 def currency @currency end |
#details ⇒ Object (readonly)
Returns the value of attribute details
6 7 8 |
# File 'app/models/spree/bank_payments/account_data.rb', line 6 def details @details end |
#provider_account_id ⇒ Object (readonly)
Returns the value of attribute provider_account_id
6 7 8 |
# File 'app/models/spree/bank_payments/account_data.rb', line 6 def provider_account_id @provider_account_id end |