Class: CsvReportExpander

Inherits:
Object
  • Object
show all
Defined in:
backend/app/lib/reports/csv_report_expander.rb

Instance Method Summary collapse

Constructor Details

#initialize(data, job) ⇒ CsvReportExpander

Returns a new instance of CsvReportExpander.



3
4
5
6
# File 'backend/app/lib/reports/csv_report_expander.rb', line 3

def initialize(data, job)
  @data = data
  @job = job
end

Instance Method Details

#expand_csvObject



8
9
10
11
# File 'backend/app/lib/reports/csv_report_expander.rb', line 8

def expand_csv
  fix_json_columns(0, @data[0].size)
  @data
end