class MerchantESolutions::Record

Private Instance Methods

parse_boolean(string) click to toggle source
# File lib/merchant_e_solutions/record.rb, line 13
def parse_boolean(string)
  ['y', 'yes'].include? string.downcase
end
parse_date(date) click to toggle source
# File lib/merchant_e_solutions/record.rb, line 7
def parse_date(date)
  if date && !date.empty?
    Date.strptime(date, "%m/%d/%Y")
  end
end