Method: Etsy::Country.find_by_alpha2

Defined in:
lib/etsy/country.rb

.find_by_alpha2(alpha2) ⇒ Object



17
18
19
20
# File 'lib/etsy/country.rb', line 17

def self.find_by_alpha2(alpha2)
  alpha2 = alpha2.upcase
  find_all.detect { |country| country.iso_country_code == alpha2}
end