Class: Appydave::Tools::Configuration::Models::BankReconciliationConfig::ChartOfAccount
- Inherits:
-
Object
- Object
- Appydave::Tools::Configuration::Models::BankReconciliationConfig::ChartOfAccount
- Defined in:
- lib/appydave/tools/configuration/models/bank_reconciliation_config.rb
Overview
Inner class to represent a chart of account entry
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#narration ⇒ Object
Returns the value of attribute narration.
Instance Method Summary collapse
-
#initialize(data) ⇒ ChartOfAccount
constructor
A new instance of ChartOfAccount.
- #to_h ⇒ Object
Constructor Details
#initialize(data) ⇒ ChartOfAccount
Returns a new instance of ChartOfAccount.
115 116 117 118 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 115 def initialize(data) @code = data['code'] @narration = data['narration'] end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
113 114 115 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 113 def code @code end |
#narration ⇒ Object
Returns the value of attribute narration.
113 114 115 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 113 def narration @narration end |
Instance Method Details
#to_h ⇒ Object
120 121 122 123 124 125 |
# File 'lib/appydave/tools/configuration/models/bank_reconciliation_config.rb', line 120 def to_h { 'code' => @code, 'narration' => @narration } end |