Class: MerchantESolutions::SummaryRecord

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ SummaryRecord

Returns a new instance of SummaryRecord.



9
10
11
12
13
14
15
16
17
18
# File 'lib/merchant_e_solutions/summary_record.rb', line 9

def initialize(row)
  @organization_id = row[0]
  @organization_name = row[1]
  @credit_company = row[2]
  @sales_count = row[3]
  @sales_amount = row[4]
  @credits_count = row[5]
  @credits_amount = row[6]
  @net_amount = row[7]
end

Instance Attribute Details

#credit_companyObject (readonly)

Returns the value of attribute credit_company.



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

def credit_company
  @credit_company
end

#credits_amountObject (readonly)

Returns the value of attribute credits_amount.



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

def credits_amount
  @credits_amount
end

#credits_countObject (readonly)

Returns the value of attribute credits_count.



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

def credits_count
  @credits_count
end

#net_amountObject (readonly)

Returns the value of attribute net_amount.



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

def net_amount
  @net_amount
end

#organization_idObject (readonly)

Returns the value of attribute organization_id.



6
7
8
# File 'lib/merchant_e_solutions/summary_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/summary_record.rb', line 6

def organization_name
  @organization_name
end

#sales_amountObject (readonly)

Returns the value of attribute sales_amount.



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

def sales_amount
  @sales_amount
end

#sales_countObject (readonly)

Returns the value of attribute sales_count.



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

def sales_count
  @sales_count
end