Module: Money::Currency::Loader

Extended by:
Loader
Included in:
Loader
Defined in:
lib/money/currency/loader.rb

Constant Summary collapse

CURRENCY_DATA_PATH =
File.expand_path("../../../../config", __FILE__)

Instance Method Summary collapse

Instance Method Details

#load_currenciesObject



10
11
12
13
14
15
# File 'lib/money/currency/loader.rb', line 10

def load_currencies
  currencies = {}
  currencies.merge! parse_currency_file("currency_historic.json")
  currencies.merge! parse_currency_file("currency_non_iso.json")
  currencies.merge! parse_currency_file("currency_iso.json")
end