Class: MerchantESolutions::SummaryRecord
- Defined in:
- lib/merchant_e_solutions/summary_record.rb
Instance Attribute Summary collapse
-
#credit_company ⇒ Object
readonly
Returns the value of attribute credit_company.
-
#credits_amount ⇒ Object
readonly
Returns the value of attribute credits_amount.
-
#credits_count ⇒ Object
readonly
Returns the value of attribute credits_count.
-
#net_amount ⇒ Object
readonly
Returns the value of attribute net_amount.
-
#organization_id ⇒ Object
readonly
Returns the value of attribute organization_id.
-
#organization_name ⇒ Object
readonly
Returns the value of attribute organization_name.
-
#sales_amount ⇒ Object
readonly
Returns the value of attribute sales_amount.
-
#sales_count ⇒ Object
readonly
Returns the value of attribute sales_count.
Instance Method Summary collapse
-
#initialize(row) ⇒ SummaryRecord
constructor
A new instance of SummaryRecord.
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_company ⇒ Object (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_amount ⇒ Object (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_count ⇒ Object (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_amount ⇒ Object (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_id ⇒ Object (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_name ⇒ Object (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_amount ⇒ Object (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_count ⇒ Object (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 |