Module: ISO3166::CountryCurrencyMethods

Defined in:
lib/countries/country/currency_methods.rb

Overview

Optional extension which allows you to get back a Money::Currency object with all the currency info

Instance Method Summary collapse

Instance Method Details

#currencyObject



6
7
8
# File 'lib/countries/country/currency_methods.rb', line 6

def currency
  Money::Currency.find(data['currency_code'])
end