README.rdoc in iso_country_codes-0.7.0 vs README.rdoc in iso_country_codes-0.7.1
- old
+ new
@@ -11,26 +11,28 @@
* Search by name, currency code or calling/dialing code
== SYNOPSIS:
# Finding an ISO code returns the country name and other code formats
- code = IsoCountryCodes.find('au')
- code.name # => "Australia"
- code.numeric # => "036"
- code.alpha2 # => "AU"
- code.alpha3 # => "AUS"
- code.calling # => "+61"
- code.continent # => "OC"
+ code = IsoCountryCodes.find('usa')
+ code.name # => "United Kingdom of Great Britain and Northern Ireland"
+ code.numeric # => "826"
+ code.alpha2 # => "GB"
+ code.alpha3 # => "GBR"
+ code.calling # => "+44"
+ code.continent # => "EU"
+ code.iban # => "GB"
# Codes can be found via numeric, alpha-2 or alpha-3 format
IsoCountryCodes.find(36)
IsoCountryCodes.find('au')
IsoCountryCodes.find('aus')
- # Codes can also be returned by searching country name, currency or calling/dialing code
+ # Codes can also be returned by searching country name, currency, calling/dialing code or IBAN
IsoCountryCodes.search_by_name('australia')
IsoCountryCodes.search_by_currency('aud')
IsoCountryCodes.search_by_calling_code('+61')
+ IsoCountryCodes.search_by_iban('gb')
# Fetch a country's local currency
IsoCountryCodes.find('aus').currency # => "AUD"
# Output an Array of countries and their codes for use form helper methods