module CsvImporter
Implements CSV Import functionality
Public Instance Methods
csv_import(the_file)
click to toggle source
import data from CSV file and return an Array of Hashes
# File lib/dm_core/csv_importer.rb, line 9 def csv_import(the_file) import_list = Array.new CSV.foreach(the_file, headers: true) do |row| import_list << row.to_hash end return import_list end