Class: MerchantESolutions::DepositRecord

Inherits:
Record
  • Object
show all
Defined in:
lib/merchant_e_solutions/deposit_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (readonly)

Returns the value of attribute amount.



6
7
8
# File 'lib/merchant_e_solutions/deposit_record.rb', line 6

def amount
  @amount
end

#dateObject (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_idObject (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_nameObject (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_idObject (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

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/merchant_e_solutions/deposit_record.rb', line 6

def type
  @type
end