Sha256: 7477689fd3d6bfd69dc89a44f9aaaef295485022c5409f7d6f4824a0eb457ce7

Contents?: true

Size: 219 Bytes

Versions: 2

Compression:

Stored size: 219 Bytes

Contents

module IsoCountry 

  class Country
    attr_accessor :name, :alpha2, :alpha3
    
    def initialize(data)
      data.each do |k, v|
        send(:"#{k}=", val) if self.respond_to? "#{k}="
      end
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iso_countries_plus-0.2.0 lib/iso_countries_plus/country.rb
iso_countries_plus-0.1.0 lib/iso_countries_plus/country.rb