Class: Burner::Library::Deserialize::Csv
- Inherits:
-
JobWithRegister
- Object
- Job
- JobWithRegister
- Burner::Library::Deserialize::Csv
- Defined in:
- lib/burner/library/deserialize/csv.rb
Overview
Constant Summary
Constants inherited from JobWithRegister
Instance Attribute Summary
Attributes inherited from JobWithRegister
Attributes inherited from Job
Instance Method Summary collapse
-
#perform(_output, payload) ⇒ Object
This currently only supports returning an array of arrays, including the header row.
Methods inherited from JobWithRegister
Methods inherited from Job
Methods included from Util::Arrayable
Constructor Details
This class inherits a constructor from Burner::JobWithRegister
Instance Method Details
#perform(_output, payload) ⇒ Object
This currently only supports returning an array of arrays, including the header row. In the future this could be extended to offer more customizable options, such as making it return an array of hashes with the columns mapped, etc.)
21 22 23 |
# File 'lib/burner/library/deserialize/csv.rb', line 21 def perform(_output, payload) payload[register] = CSV.new(payload[register], headers: false).to_a end |