Class: CountryCode
- Inherits:
-
Object
- Object
- CountryCode
- Defined in:
- lib/country_code.rb
Class Method Summary collapse
Class Method Details
.find(country_name, alpha) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/country_code.rb', line 3 def self.find(country_name, alpha) if !self.countries[country_name.downcase].nil? self.countries[country_name.downcase][alpha.to_s] else "Country name is not present. Sorry !" end end |