Sha256: 61fff5f69a4ec45c334bf9a4cc5eeb9d2766aebb6d65b8c47f471e8bae2c256a
Contents?: true
Size: 414 Bytes
Versions: 1
Compression:
Stored size: 414 Bytes
Contents
require 'csv' module BankScrap module Exporter class Csv HEADERS = %w(ID Date Description DescriptionDetail Amount).freeze def initialize(output = nil) @output = output || 'transactions.csv' end def write_to_file(data) CSV.open(@output, 'wb') do |csv| csv << HEADERS data.each { |line| csv << line.to_a } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bankscrap-2.0.6 | lib/bankscrap/exporters/csv.rb |