Class: MerchantESolutions::DepositRecord
- Defined in:
- lib/merchant_e_solutions/deposit_record.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#organization_id ⇒ Object
readonly
Returns the value of attribute organization_id.
-
#organization_name ⇒ Object
readonly
Returns the value of attribute organization_name.
-
#reference_id ⇒ Object
readonly
Returns the value of attribute reference_id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(row) ⇒ DepositRecord
constructor
A new instance of DepositRecord.
Constructor Details
#initialize(row) ⇒ DepositRecord
Returns a new instance of DepositRecord.
9 10 11 12 13 14 15 16 |
# File 'lib/merchant_e_solutions/deposit_record.rb', line 9 def initialize(row) @organization_id = row[0] @organization_name = row[1] @date = parse_date(row[2]) @type = row[3] @amount = row[4] @reference_id = row[5] end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
6 7 8 |
# File 'lib/merchant_e_solutions/deposit_record.rb', line 6 def amount @amount end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
6 7 8 |
# File 'lib/merchant_e_solutions/deposit_record.rb', line 6 def date @date end |
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
6 7 8 |
# File 'lib/merchant_e_solutions/deposit_record.rb', line 6 def organization_id @organization_id end |
#organization_name ⇒ Object (readonly)
Returns the value of attribute organization_name.
6 7 8 |
# File 'lib/merchant_e_solutions/deposit_record.rb', line 6 def organization_name @organization_name end |
#reference_id ⇒ Object (readonly)
Returns the value of attribute reference_id.
6 7 8 |
# File 'lib/merchant_e_solutions/deposit_record.rb', line 6 def reference_id @reference_id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/merchant_e_solutions/deposit_record.rb', line 6 def type @type end |