Class: Appydave::Tools::Configuration::Models::BankReconciliationConfig::BankAccount
- Inherits:
-
Object
- Object
- Appydave::Tools::Configuration::Models::BankReconciliationConfig::BankAccount
- Defined in:
- lib/appydave/tools/configuration/models/bank_reconciliation_config.rb
Overview
Inner class to represent a bank account
Instance Attribute Summary collapse
-
#account_number ⇒ Object
Returns the value of attribute account_number.
-
#bsb ⇒ Object
Returns the value of attribute bsb.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
Instance Method Summary collapse
-
#initialize(data) ⇒ BankAccount
constructor
A new instance of BankAccount.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ BankAccount
Returns a new instance of BankAccount.
94 95 96 97 98 99 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 94 def initialize(data) @account_number = data['account_number'] @bsb = data['bsb'] @name = data['name'] @platform = data['platform'] end |
Instance Attribute Details
#account_number ⇒ Object
Returns the value of attribute account_number.
92 93 94 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 92 def account_number @account_number end |
#bsb ⇒ Object
Returns the value of attribute bsb.
92 93 94 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 92 def bsb @bsb end |
#name ⇒ Object
Returns the value of attribute name.
92 93 94 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 92 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform.
92 93 94 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 92 def platform @platform end |
Instance Method Details
#to_h ⇒ Object
101 102 103 104 105 106 107 108 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 101 def to_h { 'account_number' => @account_number, 'bsb' => @bsb, 'name' => @name, 'platform' => @platform } end |