class Gaigo::Countries

Public Instance Methods

add_country(attributes) click to toggle source
# File lib/gaigo/countries.rb, line 20
def add_country(attributes)
  self << Country.new(*attributes)
end
codes() click to toggle source
# File lib/gaigo/countries.rb, line 28
def codes
  self.map {|i| i.code}
end
get(code) click to toggle source
# File lib/gaigo/countries.rb, line 24
def get(code)
  self.find {|i| i.code == code.to_s}
end