Module: ISO4217

Defined in:
lib/iso4217/iso4217.rb,
lib/iso4217/version.rb,
lib/iso4217/currency.rb,
lib/iso4217/currencies.rb

Defined Under Namespace

Modules: CurrencyHelper Classes: Currency

Constant Summary collapse

VERSION =
"0.6.0"
GENERIC_CURRENCY_SIGN =
"U+00a4"
DOLLAR_SIGN =
"U+0024"
POUND_SIGN =
"U+00a3"
CURRENCIES =
[
  UNITED_ARAB_EMIRATES_DIRHAM =               Currency.new(:AED, 'د.إ', 'United Arab Emirates Dirham'),
  AFGHAN_AFGHANI =                            Currency.new(:AFN, '؋', 'Afghan Afghani'),
  ALBANIAN_LEK =                              Currency.new(:ALL, 'L', 'Albanian Lek'),
  ARMENIAN_DRAM =                             Currency.new(:AMD, 'դր.', 'Armenian Dram'),
  NETHERLANDS_ANTILLEAN_GULDEN =              Currency.new(:ANG, 'ƒ', 'Netherlands Antillean Gulden'),
  ANGOLAN_KWANZA =                            Currency.new(:AOA, 'Kz', 'Angolan Kwanza'),
  ARGENTINE_PESO =                            Currency.new(:ARS, '$', 'Argentine Peso'),
  AUSTRALIAN_DOLLAR =                         Currency.new(:AUD, '$', 'Australian Dollar'),
  ARUBAN_FLORIN =                             Currency.new(:AWG, 'ƒ', 'Aruban Florin'),
  AZERBAIJANI_MANAT =                         Currency.new(:AZN, 'man', 'Azerbaijani Manat'),
  BOSNIA_AND_HERZEGOVINA_CONVERTIBLE_MARK =   Currency.new(:BAM, 'KM', 'Bosnia and Herzegovina Convertible Mark'),
  BARBADIAN_DOLLAR =                          Currency.new(:BBD, '$', 'Barbadian Dollar'),
  BANGLADESHI_TAKA =                          Currency.new(:BDT, '', 'Bangladeshi Taka'),
  BULGARIAN_LEV =                             Currency.new(:BGN, 'лв', 'Bulgarian Lev'),
  BAHRAINI_DINAR =                            Currency.new(:BHD, 'ب.د', 'Bahraini Dinar'),
  BURUNDIAN_FRANC =                           Currency.new(:BIF, 'Fr', 'Burundian Franc'),
  BERMUDIAN_DOLLAR =                          Currency.new(:BMD, '$', 'Bermudian Dollar'),
  BRUNEI_DOLLAR =                             Currency.new(:BND, '$', 'Brunei Dollar'),
  BOLIVIAN_BOLIVIANO =                        Currency.new(:BOB, 'Bs.', 'Bolivian Boliviano'),
  BRAZILIAN_REAL =                            Currency.new(:BRL, 'R$ ', 'Brazilian Real'),
  BAHAMIAN_DOLLAR =                           Currency.new(:BSD, '$', 'Bahamian Dollar'),
  BHUTANESE_NGULTRUM =                        Currency.new(:BTN, 'Nu', 'Bhutanese Ngultrum'),
  BOTSWANA_PULA =                             Currency.new(:BWP, 'P', 'Botswana Pula'),
  BELARUSIAN_RUBLE =                          Currency.new(:BYR, 'Br', 'Belarusian Ruble'),
  BELIZE_DOLLAR =                             Currency.new(:BZD, '$', 'Belize Dollar'),
  CANADIAN_DOLLAR =                           Currency.new(:CAD, 'Can$', 'Canadian Dollar'),
  CONGOLESE_FRANC =                           Currency.new(:CDF, 'Fr', 'Congolese Franc'),
  SWISS_FRANC =                               Currency.new(:CHF, 'Fr', 'Swiss Franc'),
  CHILEAN_PESO =                              Currency.new(:CLP, '$', 'Chilean Peso'),
  CHINESE_RENMINBI_YUAN =                     Currency.new(:CNY, '¥', 'Chinese Renminbi Yuan'),
  COLOMBIAN_PESO =                            Currency.new(:COP, '$', 'Colombian Peso'),
  COSTA_RICAN_COLON =                         Currency.new(:CRC, '', 'Costa Rican Colón'),
  CUBAN_CONVERTIBLE_PESO =                    Currency.new(:CUC, '$', 'Cuban Convertible Peso'),
  CUBAN_PESO =                                Currency.new(:CUP, '$', 'Cuban Peso'),
  CAPE_VERDEAN_ESCUDO =                       Currency.new(:CVE, 'Esc', 'Cape Verdean Escudo'),
  CZECH_KORUNA =                              Currency.new(:CZK, '', 'Czech Koruna'),
  DJIBOUTIAN_FRANC =                          Currency.new(:DJF, 'Fr', 'Djiboutian Franc'),
  DANISH_KRONE =                              Currency.new(:DKK, 'kr', 'Danish Krone'),
  DOMINICAN_PESO =                            Currency.new(:DOP, '$', 'Dominican Peso'),
  ALGERIAN_DINAR =                            Currency.new(:DZD, 'د.ج', 'Algerian Dinar'),
  ESTONIAN_KROON =                            Currency.new(:EEK, 'KR', 'Estonian Kroon'),
  EGYPTIAN_POUND =                            Currency.new(:EGP, 'ج.م', 'Egyptian Pound'),
  ERITREAN_NAKFA =                            Currency.new(:ERN, 'Nfk', 'Eritrean Nakfa'),
  ETHIOPIAN_BIRR =                            Currency.new(:ETB, 'Br', 'Ethiopian Birr'),
  EURO =                                      Currency.new(:EUR, '', 'Euro'),
  FIJIAN_DOLLAR =                             Currency.new(:FJD, '$', 'Fijian Dollar'),
  FALKLAND_POUND =                            Currency.new(:FKP, '£', 'Falkland Pound'),
  BRITISH_POUND =                             Currency.new(:GBP, '£', 'Pound Sterling'),
  GEORGIAN_LARI =                             Currency.new(:GEL, '', 'Georgian Lari'),
  GHANAIAN_CEDI =                             Currency.new(:GHS, '', 'Ghanaian Cedi'),
  GIBRALTAR_POUND =                           Currency.new(:GIP, '£', 'Gibraltar Pound'),
  GAMBIAN_DALASI =                            Currency.new(:GMD, 'D', 'Gambian Dalasi'),
  GUINEAN_FRANC =                             Currency.new(:GNF, 'Fr', 'Guinean Franc'),
  GUATEMALAN_QUETZAL =                        Currency.new(:GTQ, 'Q', 'Guatemalan Quetzal'),
  GUYANESE_DOLLAR =                           Currency.new(:GYD, '$', 'Guyanese Dollar'),
  HONG_KONG_DOLLAR =                          Currency.new(:HKD, '$', 'Hong Kong Dollar'),
  HONDURAN_LEMPIRA =                          Currency.new(:HNL, 'L', 'Honduran Lempira'),
  CROATIAN_KUNA =                             Currency.new(:HRK, 'kn', 'Croatian Kuna'),
  HAITIAN_GOURDE =                            Currency.new(:HTG, 'G', 'Haitian Gourde'),
  HUNGARIAN_FORINT =                          Currency.new(:HUF, 'Ft', 'Hungarian Forint'),
  INDONESIAN_RUPIAH =                         Currency.new(:IDR, 'Rp', 'Indonesian Rupiah'),
  ISRAELI_NEW_SHEQEL =                        Currency.new(:ILS, '', 'Israeli New Sheqel'),
  INDIAN_RUPEE =                              Currency.new(:INR, '', 'Indian Rupee'),
  IRAQI_DINAR =                               Currency.new(:IQD, 'ع.د', 'Iraqi Dinar'),
  IRANIAN_RIAL =                              Currency.new(:IRR, '', 'Iranian Rial'),
  ICELANDIC_KRONA =                           Currency.new(:ISK, 'kr', 'Icelandic Króna'),
  JAMAICAN_DOLLAR =                           Currency.new(:JMD, '$', 'Jamaican Dollar'),
  JORDANIAN_DINAR =                           Currency.new(:JOD, 'د.ا', 'Jordanian Dinar'),
  JAPANESE_YEN =                              Currency.new(:JPY, '¥', 'Japanese Yen'),
  KENYAN_SHILLING =                           Currency.new(:KES, 'Sh', 'Kenyan Shilling'),
  KYRGYZSTANI_SOM =                           Currency.new(:KGS, '', 'Kyrgyzstani Som'),
  CAMBODIAN_RIEL =                            Currency.new(:KHR, '', 'Cambodian Riel'),
  COMORIAN_FRANC =                            Currency.new(:KMF, 'Fr', 'Comorian Franc'),
  NORTH_KOREAN_WON =                          Currency.new(:KPW, '', 'North Korean Won'),
  SOUTH_KOREAN_WON =                          Currency.new(:KRW, '', 'South Korean Won'),
  KUWAITI_DINAR =                             Currency.new(:KWD, 'د.ك', 'Kuwaiti Dinar'),
  CAYMAN_ISLANDS_DOLLAR =                     Currency.new(:KYD, '$', 'Cayman Islands Dollar'),
  KAZAKHSTANI_TENGE =                         Currency.new(:KZT, '', 'Kazakhstani Tenge'),
  LAO_KIP =                                   Currency.new(:LAK, '', 'Lao Kip'),
  LEBANESE_LIRA =                             Currency.new(:LBP, 'ل.ل', 'Lebanese Lira'),
  SRI_LANKAN_RUPEE =                          Currency.new(:LKR, '', 'Sri Lankan Rupee'),
  LIBERIAN_DOLLAR =                           Currency.new(:LRD, '$', 'Liberian Dollar'),
  LESOTHO_LOTI =                              Currency.new(:LSL, 'L', 'Lesotho Loti'),
  LITHUANIAN_LITAS =                          Currency.new(:LTL, 'Lt', 'Lithuanian Litas'),
  LATVIAN_LATS =                              Currency.new(:LVL, 'Ls', 'Latvian Lats'),
  LIBYAN_DINAR =                              Currency.new(:LYD, 'ل.د', 'Libyan Dinar'),
  MOROCCAN_DIRHAM =                           Currency.new(:MAD, 'د.م.', 'Moroccan Dirham'),
  MOLDOVAN_LEU =                              Currency.new(:MDL, 'L', 'Moldovan Leu'),
  MALAGASY_ARIARY =                           Currency.new(:MGA, '', 'Malagasy Ariary'),
  MACEDONIAN_DENAR =                          Currency.new(:MKD, 'ден', 'Macedonian Denar'),
  MYANMAR_KYAT =                              Currency.new(:MMK, 'K', 'Myanmar Kyat'),
  MONGOLIAN_TOGROG =                          Currency.new(:MNT, '', 'Mongolian Tögrög'),
  MACANESE_PATACA =                           Currency.new(:MOP, 'P', 'Macanese Pataca'),
  MAURITANIAN_OUGUIYA =                       Currency.new(:MRO, 'UM', 'Mauritanian Ouguiya'),
  MAURITIAN_RUPEE =                           Currency.new(:MUR, '', 'Mauritian Rupee'),
  MALDIVIAN_RUFIYAA =                         Currency.new(:MVR, 'ރ.', 'Maldivian Rufiyaa'),
  MALAWIAN_KWACHA =                           Currency.new(:MWK, 'MK', 'Malawian Kwacha'),
  MEXICAN_PESO =                              Currency.new(:MXN, '$', 'Mexican Peso'),
  MALAYSIAN_RINGGIT =                         Currency.new(:MYR, 'RM', 'Malaysian Ringgit'),
  MOZAMBICAN_METICAL =                        Currency.new(:MZN, 'MTn', 'Mozambican Metical'),
  NAMIBIAN_DOLLAR =                           Currency.new(:NAD, '$', 'Namibian Dollar'),
  NIGERIAN_NAIRA =                            Currency.new(:NGN, '', 'Nigerian Naira'),
  NICARAGUAN_CORDOBA =                        Currency.new(:NIO, 'C$', 'Nicaraguan Córdoba'),
  NORWEGIAN_KRONE =                           Currency.new(:NOK, 'kr', 'Norwegian Krone'),
  NEPALESE_RUPEE =                            Currency.new(:NPR, '', 'Nepalese Rupee'),
  NEW_ZEALAND_DOLLAR =                        Currency.new(:NZD, '$', 'New Zealand Dollar'),
  OMANI_RIAL =                                Currency.new(:OMR, 'ر.ع.', 'Omani Rial'),
  PANAMANIAN_BALBOA =                         Currency.new(:PAB, 'B/.', 'Panamanian Balboa'),
  PERUVIAN_NUEVO_SOL =                        Currency.new(:PEN, 'S/.', 'Peruvian Nuevo Sol'),
  PAPUA_NEW_GUINEAN_KINA =                    Currency.new(:PGK, 'K', 'Papua New Guinean Kina'),
  PHILIPPINE_PESO =                           Currency.new(:PHP, '', 'Philippine Peso'),
  PAKISTANI_RUPEE =                           Currency.new(:PKR, '', 'Pakistani Rupee'),
  POLISH_ZLOTY =                              Currency.new(:PLN, '', 'Polish Złoty'),
  PARAGUAYAN_GUARANI =                        Currency.new(:PYG, '', 'Paraguayan Guaraní'),
  QATARI_RIYAL =                              Currency.new(:QAR, 'ر.ق', 'Qatari Riyal'),
  ROMANIAN_LEU =                              Currency.new(:RON, 'L', 'Romanian Leu'),
  SERBIAN_DINAR =                             Currency.new(:RSD, 'дин.', 'Serbian Dinar'),
  RUSSIAN_RUBLE =                             Currency.new(:RUB, 'руб.', 'Russian Ruble'),
  RWANDAN_FRANC =                             Currency.new(:RWF, 'Fr', 'Rwandan Franc'),
  SAUDI_RIYAL =                               Currency.new(:SAR, 'ر.س', 'Saudi Riyal'),
  SOLOMON_ISLANDS_DOLLAR =                    Currency.new(:SBD, '$', 'Solomon Islands Dollar'),
  SEYCHELLOIS_RUPEE =                         Currency.new(:SCR, '', 'Seychellois Rupee'),
  SUDANESE_POUND =                            Currency.new(:SDG, '£', 'Sudanese Pound'),
  SWEDISH_KRONA =                             Currency.new(:SEK, 'kr', 'Swedish Krona'),
  SINGAPORE_DOLLAR =                          Currency.new(:SGD, '$', 'Singapore Dollar'),
  SAINT_HELENIAN_POUND =                      Currency.new(:SHP, '£', 'Saint Helenian Pound'),
  SLOVAK_KORUNA =                             Currency.new(:SKK, 'Sk', 'Slovak Koruna'),
  SIERRA_LEONEAN_LEONE =                      Currency.new(:SLL, 'Le', 'Sierra Leonean Leone'),
  SOMALI_SHILLING =                           Currency.new(:SOS, 'Sh', 'Somali Shilling'),
  SURINAMESE_DOLLAR =                         Currency.new(:SRD, '$', 'Surinamese Dollar'),
  SAO_TOME_AND_PRINCIPE_DOBRA =               Currency.new(:STD, 'Db', 'São Tomé and Príncipe Dobra'),
  SALVADORAN_COLON =                          Currency.new(:SVC, '', 'Salvadoran Colón'),
  SYRIAN_POUND =                              Currency.new(:SYP, 'ل.س', 'Syrian Pound'),
  SWAZI_LILANGENI =                           Currency.new(:SZL, 'L', 'Swazi Lilangeni'),
  THAI_BAHT =                                 Currency.new(:THB, '฿', 'Thai Baht'),
  TAJIKISTANI_SOMONI =                        Currency.new(:TJS, 'ЅМ', 'Tajikistani Somoni'),
  TURKMENISTANI_MANAT =                       Currency.new(:TMM, 'm', 'Turkmenistani Manat'),
  TUNISIAN_DINAR =                            Currency.new(:TND, 'د.ت', 'Tunisian Dinar'),
  TONGAN_PAANGA =                             Currency.new(:TOP, 'T$', 'Tongan Paʻanga'),
  TURKISH_NEW_LIRA =                          Currency.new(:TRY, 'TL', 'Turkish New Lira'),
  TRINIDAD_AND_TOBAGO_DOLLAR =                Currency.new(:TTD, '$', 'Trinidad and Tobago Dollar'),
  NEW_TAIWAN_DOLLAR =                         Currency.new(:TWD, '$', 'New Taiwan Dollar'),
  TANZANIAN_SHILLING =                        Currency.new(:TZS, 'Sh', 'Tanzanian Shilling'),
  UKRAINIAN_HRYVNIA =                         Currency.new(:UAH, '', 'Ukrainian Hryvnia'),
  UGANDAN_SHILLING =                          Currency.new(:UGX, 'Sh', 'Ugandan Shilling'),
  UNITED_STATES_DOLLAR =                      Currency.new(:USD, '$', 'US Dollar'),
  URUGUAYAN_PESO =                            Currency.new(:UYU, '$', 'Uruguayan Peso'),
  UZBEKISTANI_SOM =                           Currency.new(:UZS, '', 'Uzbekistani Som'),
  VENEZUELAN_BOLIVAR =                        Currency.new(:VEF, 'Bs F', 'Venezuelan Bolívar'),
  VIETNAMESE_DONG =                           Currency.new(:VND, '', 'Vietnamese Đồng'),
  VANUATU_VATU =                              Currency.new(:VUV, 'Vt', 'Vanuatu Vatu'),
  SAMOAN_TALA =                               Currency.new(:WST, 'T', 'Samoan Tala'),
  CENTRAL_AFRICAN_CFA_FRANC =                 Currency.new(:XAF, 'Fr', 'Central African Cfa Franc'),
  EAST_CARIBBEAN_DOLLAR =                     Currency.new(:XCD, '$', 'East Caribbean Dollar'),
  WEST_AFRICAN_CFA_FRANC =                    Currency.new(:XOF, 'Fr', 'West African Cfa Franc'),
  CFP_FRANC =                                 Currency.new(:XPF, 'Fr', 'Cfp Franc'),
  YEMENI_RIAL =                               Currency.new(:YER, '', 'Yemeni Rial'),
  SOUTH_AFRICAN_RAND =                        Currency.new(:ZAR, 'R', 'South African Rand'),
  ZAMBIAN_KWACHA =                            Currency.new(:ZMK, 'ZK', 'Zambian Kwacha'),
  ZIMBABWEAN_DOLLAR =                         Currency.new(:ZWD, '$', 'Zimbabwean Dollar')
]
CURRENCY_BY_CODE =
Hash.new