module Iyzi::Currency

Constants

EUR
GBP
IRR
TRY
USD
VALID_CURRENCIES

Public Class Methods

find(symbol) click to toggle source
# File lib/iyzi/currency.rb, line 11
def self.find(symbol)
  currency = VALID_CURRENCIES.select { |c| c == symbol.to_s.upcase }.first
  currency.present? ? currency : raise("currency must be one of these: #{VALID_CURRENCIES}")
end