Sha256: 8b89785829c4e87bf3b20b91db45ae947aad117387918abd92eb2bc8c631bde4

Contents?: true

Size: 406 Bytes

Versions: 42

Compression:

Stored size: 406 Bytes

Contents

require "csv"

module Octopolo
  module Reports
    # Public: Write the report data to the given file name
    #
    # data - Array of report data, each element being a line of the CSV
    # filename - The name of the file to write to
    def self.write_csv data, filename
      CSV.open filename, "w" do |file|
        data.each do |line|
          file.puts line
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
octopolo-1.12.0 lib/octopolo/reports.rb
octopolo-1.11.4 lib/octopolo/reports.rb
octopolo-1.11.3 lib/octopolo/reports.rb
octopolo-1.11.1 lib/octopolo/reports.rb
octopolo-1.11.0 lib/octopolo/reports.rb
octopolo-1.9.0 lib/octopolo/reports.rb
octopolo-1.8.1 lib/octopolo/reports.rb
octopolo-1.8.0 lib/octopolo/reports.rb
octopolo-1.7.1 lib/octopolo/reports.rb
octopolo-1.7.0 lib/octopolo/reports.rb
octopolo-1.6.0 lib/octopolo/reports.rb
octopolo-1.5.3 lib/octopolo/reports.rb
octopolo-1.5.2 lib/octopolo/reports.rb
octopolo-1.5.1 lib/octopolo/reports.rb
octopolo-1.5.0 lib/octopolo/reports.rb
octopolo-1.4.0 lib/octopolo/reports.rb
octopolo-1.3.0 lib/octopolo/reports.rb
octopolo-1.2.1 lib/octopolo/reports.rb
octopolo-1.2.0 lib/octopolo/reports.rb
octopolo-1.1.1 lib/octopolo/reports.rb