Returns a new instance of Country.
6 7 8 9 10
# File 'lib/decoder/country.rb', line 6 def initialize(args) self.code = args[:code].to_s self.name = args[:name] self.states = Decoder.locale[Decoder.i18n][self.code][:states] end