Class: Loqate::Geocoding::Country

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/loqate/geocoding/country.rb

Overview

A result from the position to country API call.

Instance Method Summary collapse

Instance Method Details

#country_iso2String

The ISO2 of the country.

Returns:

  • (String)


15
# File 'lib/loqate/geocoding/country.rb', line 15

attribute :country_iso2, Types::Strict::String

#country_iso3String

The ISO3 of the country.

Returns:

  • (String)


21
# File 'lib/loqate/geocoding/country.rb', line 21

attribute :country_iso3, Types::Strict::String

#country_iso_numberInteger

The ISO number of the country.

Returns:

  • (Integer)


27
# File 'lib/loqate/geocoding/country.rb', line 27

attribute :country_iso_number, Types::Strict::Integer

#country_nameString

The name of the country where the position belongs to.

Returns:

  • (String)


9
# File 'lib/loqate/geocoding/country.rb', line 9

attribute :country_name, Types::Strict::String