Class: EvernoteLinkExtractor::CsvBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/evernote_link_extractor/csv_builder.rb

Class Method Summary collapse

Class Method Details

.create(link_list) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/evernote_link_extractor/csv_builder.rb', line 4

def self.create(link_list)
  Helper.message("Starting to create the CSV file ...\n")

  CSV.open("evernote_link_export_#{Time.now.to_i}.csv", 'w', :write_headers=> true, :headers => csv_headers) do |csv|
    csv << rows(link_list)
  end
end