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.1.0 lib/octopolo/reports.rb
octopolo-1.0.2 lib/octopolo/reports.rb
octopolo-1.0.1 lib/octopolo/reports.rb
octopolo-1.0.0 lib/octopolo/reports.rb
octopolo-0.4.1 lib/octopolo/reports.rb
octopolo-0.4.0 lib/octopolo/reports.rb
octopolo-0.3.6 lib/octopolo/reports.rb
octopolo-0.3.5 lib/octopolo/reports.rb
octopolo-0.3.4 lib/octopolo/reports.rb
octopolo-0.3.3 lib/octopolo/reports.rb
octopolo-0.3.2 lib/octopolo/reports.rb
octopolo-0.3.1 lib/octopolo/reports.rb
octopolo-0.3.0 lib/octopolo/reports.rb
octopolo-0.2.1 lib/octopolo/reports.rb
octopolo-0.1.4 lib/octopolo/reports.rb
octopolo-0.2.0 lib/octopolo/reports.rb
octopolo-0.1.3 lib/octopolo/reports.rb
octopolo-0.1.2 lib/octopolo/reports.rb
octopolo-0.1.1 lib/octopolo/reports.rb
octopolo-0.1.0 lib/octopolo/reports.rb