Class: OpenMeteo::Entities::SearchResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/open_meteo/entities/search.rb

Overview

A Search Result in the Open Meteo Geocoding API. Represents one possible location.

Instance Attribute Summary collapse

Instance Attribute Details

#admin_1Object

Returns the value of attribute admin_1

Returns:

  • (Object)

    the current value of admin_1



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def admin_1
  @admin_1
end

#admin_1_idObject

Returns the value of attribute admin_1_id

Returns:

  • (Object)

    the current value of admin_1_id



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def admin_1_id
  @admin_1_id
end

#admin_2Object

Returns the value of attribute admin_2

Returns:

  • (Object)

    the current value of admin_2



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def admin_2
  @admin_2
end

#admin_2_idObject

Returns the value of attribute admin_2_id

Returns:

  • (Object)

    the current value of admin_2_id



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def admin_2_id
  @admin_2_id
end

#admin_3Object

Returns the value of attribute admin_3

Returns:

  • (Object)

    the current value of admin_3



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def admin_3
  @admin_3
end

#admin_3_idObject

Returns the value of attribute admin_3_id

Returns:

  • (Object)

    the current value of admin_3_id



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def admin_3_id
  @admin_3_id
end

#admin_4Object

Returns the value of attribute admin_4

Returns:

  • (Object)

    the current value of admin_4



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def admin_4
  @admin_4
end

#admin_4_idObject

Returns the value of attribute admin_4_id

Returns:

  • (Object)

    the current value of admin_4_id



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def admin_4_id
  @admin_4_id
end

#countryObject

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def country
  @country
end

#country_codeObject

Returns the value of attribute country_code

Returns:

  • (Object)

    the current value of country_code



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def country_code
  @country_code
end

#country_idObject

Returns the value of attribute country_id

Returns:

  • (Object)

    the current value of country_id



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def country_id
  @country_id
end

#elevationObject

Returns the value of attribute elevation

Returns:

  • (Object)

    the current value of elevation



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def elevation
  @elevation
end

#feature_codeObject

Returns the value of attribute feature_code

Returns:

  • (Object)

    the current value of feature_code



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def feature_code
  @feature_code
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def id
  @id
end

#latitudeObject

Returns the value of attribute latitude

Returns:

  • (Object)

    the current value of latitude



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude

Returns:

  • (Object)

    the current value of longitude



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def longitude
  @longitude
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def name
  @name
end

#populationObject

Returns the value of attribute population

Returns:

  • (Object)

    the current value of population



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def population
  @population
end

#postcodesObject

Returns the value of attribute postcodes

Returns:

  • (Object)

    the current value of postcodes



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def postcodes
  @postcodes
end

#timezoneObject

Returns the value of attribute timezone

Returns:

  • (Object)

    the current value of timezone



5
6
7
# File 'lib/open_meteo/entities/search.rb', line 5

def timezone
  @timezone
end