Sha256: 81b2c68caabb44556573e3fe2d524d4324b9e432371f855a89f2afb8c71d332d

Contents?: true

Size: 323 Bytes

Versions: 5

Compression:

Stored size: 323 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

5 entries across 5 versions & 1 rubygems

Version Path
lite-report-1.0.4 lib/lite/report/array.rb
lite-report-1.0.3 lib/lite/report/array.rb
lite-report-1.0.2 lib/lite/report/array.rb
lite-report-1.0.1 lib/lite/report/array.rb
lite-report-1.0.0 lib/lite/report/array.rb