Class: Paypal::Csv::Reports::CaseReport
- Inherits:
-
Object
- Object
- Paypal::Csv::Reports::CaseReport
- Defined in:
- lib/paypal/csv/reports/case_report.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#entries ⇒ Object
readonly
Returns the value of attribute entries.
-
#generated_at ⇒ Object
readonly
Returns the value of attribute generated_at.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#reporting_window ⇒ Object
readonly
Returns the value of attribute reporting_window.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(csv) ⇒ CaseReport
constructor
A new instance of CaseReport.
Constructor Details
#initialize(csv) ⇒ CaseReport
13 14 15 16 17 |
# File 'lib/paypal/csv/reports/case_report.rb', line 13 def initialize(csv) @entries = [] parse(csv) end |
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id.
11 12 13 |
# File 'lib/paypal/csv/reports/case_report.rb', line 11 def account_id @account_id end |
#entries ⇒ Object (readonly)
Returns the value of attribute entries.
11 12 13 |
# File 'lib/paypal/csv/reports/case_report.rb', line 11 def entries @entries end |
#generated_at ⇒ Object (readonly)
Returns the value of attribute generated_at.
11 12 13 |
# File 'lib/paypal/csv/reports/case_report.rb', line 11 def generated_at @generated_at end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
11 12 13 |
# File 'lib/paypal/csv/reports/case_report.rb', line 11 def header @header end |
#reporting_window ⇒ Object (readonly)
Returns the value of attribute reporting_window.
11 12 13 |
# File 'lib/paypal/csv/reports/case_report.rb', line 11 def reporting_window @reporting_window end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
11 12 13 |
# File 'lib/paypal/csv/reports/case_report.rb', line 11 def version @version end |
Class Method Details
.build(file) ⇒ Object
7 8 9 |
# File 'lib/paypal/csv/reports/case_report.rb', line 7 def self.build(file) new(File.open(file, 'r:bom|utf-8')) end |