Module: CurrencyConverterCis
- Defined in:
- lib/currency_converter_cis.rb
Class Method Summary collapse
- .all_currency_code ⇒ Object
- .country_by_code(str) ⇒ Object
- .country_by_ip(str) ⇒ Object
- .exchange(money, from, to) ⇒ Object
Class Method Details
.all_currency_code ⇒ Object
22 23 24 |
# File 'lib/currency_converter_cis.rb', line 22 def self.all_currency_code CountryData::Country.all_currency end |
.country_by_code(str) ⇒ Object
10 11 12 |
# File 'lib/currency_converter_cis.rb', line 10 def self.country_by_code(str) CountryData::Country.country_by_id(str) end |
.country_by_ip(str) ⇒ Object
14 15 16 |
# File 'lib/currency_converter_cis.rb', line 14 def self.country_by_ip(str) CountryData::Country.country_by_ip(str) end |
.exchange(money, from, to) ⇒ Object
18 19 20 |
# File 'lib/currency_converter_cis.rb', line 18 def self.exchange(money, from, to) Currency.exchange(money, from, to) end |