class Burner::Library::Deserialize::Csv
Take a CSV string and de-serialize into object(s).
Expected Payload input: nothing. Payload output: an array of arrays. Each inner array represents one data row.
Public Instance Methods
perform(_output, payload)
click to toggle source
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.)
# File lib/burner/library/deserialize/csv.rb, line 21 def perform(_output, payload) payload[register] = CSV.new(payload[register], headers: false).to_a end