Sha256: c87576b28f2db18de9359f0f71cb3af277deccc421a7ba904e7fd17d2bb5794c

Contents?: true

Size: 253 Bytes

Versions: 10

Compression:

Stored size: 253 Bytes

Contents

require 'money'

module ISO3166
  # Optional extension which allows you to get back a Money::Currency object with all the currency info
  module CountryCurrencyMethods
    def currency
      Money::Currency.find(data['currency_code'])
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
countries-4.2.0 lib/countries/country/currency_methods.rb
countries-4.1.3 lib/countries/country/currency_methods.rb
countries-4.1.2 lib/countries/country/currency_methods.rb
countries-4.1.1 lib/countries/country/currency_methods.rb
countries-4.1.0 lib/countries/country/currency_methods.rb
countries-4.0.1 lib/countries/country/currency_methods.rb
countries-4.0.0 lib/countries/country/currency_methods.rb
countries-3.1.0 lib/countries/country/currency_methods.rb
countries-3.0.1 lib/countries/country/currency_methods.rb
countries-3.0.0 lib/countries/country/currency_methods.rb