Module: Geographer::Countries::ClassMethods
- Defined in:
- lib/geographer/countries.rb
Instance Method Summary collapse
Instance Method Details
#find_by(property, value) ⇒ Object
9 10 11 12 13 |
# File 'lib/geographer/countries.rb', line 9 def find_by( property, value ) COUNTRIES_LIST.each do |country| return country if country[property.to_sym] == value end end |