Sha256: dd5e7b6f324f776372fce4a04aaff0647437736cf67be9669485bb93a861ca3a

Contents?: true

Size: 692 Bytes

Versions: 6

Compression:

Stored size: 692 Bytes

Contents

module Loqate
  module Geocoding
    # A result from the position to country API call.
    class Country < Dry::Struct
      # The name of the country where the position belongs to.
      #
      # @return [String]
      #
      attribute :country_name, Types::Strict::String

      # The ISO2 of the country.
      #
      # @return [String]
      #
      attribute :country_iso2, Types::Strict::String

      # The ISO3 of the country.
      #
      # @return [String]
      #
      attribute :country_iso3, Types::Strict::String

      # The ISO number of the country.
      #
      # @return [Integer]
      #
      attribute :country_iso_number, Types::Strict::Integer
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
loqate-0.12.0 lib/loqate/geocoding/country.rb
loqate-0.11.1 lib/loqate/geocoding/country.rb
loqate-0.11.0 lib/loqate/geocoding/country.rb
loqate-0.10.4 lib/loqate/geocoding/country.rb
loqate-0.10.3 lib/loqate/geocoding/country.rb
loqate-0.10.2 lib/loqate/geocoding/country.rb