class Hulaki::ContactParser

Constants

DEFAULT

Private Class Methods

default_file_path=(path) click to toggle source
# File lib/hulaki/contact_parser.rb, line 14
def default_file_path=(path)
  @@default_file_path = File.expand_path(path)
end

Public Instance Methods

perform() click to toggle source
# File lib/hulaki/contact_parser.rb, line 5
def perform
  options = {:strings_as_keys => true, :downcase_header => true}
  SmarterCSV.process(@@default_file_path, options)
rescue Errno::ENOENT
  raise Hulaki::InvalidFilePath
end