Class: Paypal::Csv::Reports::CaseReport

Inherits:
Object
  • Object
show all
Defined in:
lib/paypal/csv/reports/case_report.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute account_id.



11
12
13
# File 'lib/paypal/csv/reports/case_report.rb', line 11

def 
  @account_id
end

#entriesObject (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_atObject (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

#headerObject (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_windowObject (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

#versionObject (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