Sha256: 0d2c176f54947d7ce316a32837cacb5a714bbc51c6270112e0192625233f501a

Contents?: true

Size: 325 Bytes

Versions: 8

Compression:

Stored size: 325 Bytes

Contents

# frozen_string_literal: true

class Lite::Report::Array < Lite::Report::Base

  def export
    generate_or_stream_export!
  end

  def import
    CSV.foreach(@data, **@csv_options)
       .with_object([]) do |row, array|
         row = convert_to_array!(row)
         array << process_import_row!(row)
       end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
lite-report-1.3.2 lib/lite/report/array.rb
lite-report-1.3.1 lib/lite/report/array.rb
lite-report-1.3.0 lib/lite/report/array.rb
lite-report-1.2.0 lib/lite/report/array.rb
lite-report-1.1.1 lib/lite/report/array.rb
lite-report-1.1.0 lib/lite/report/array.rb
lite-report-1.0.6 lib/lite/report/array.rb
lite-report-1.0.5 lib/lite/report/array.rb