Class: LocalGeocoder::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/local_geocoder/geocoder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#administrative_area_level_1Object Also known as: state

Returns the value of attribute administrative_area_level_1

Returns:

  • (Object)

    the current value of administrative_area_level_1



3
4
5
# File 'lib/local_geocoder/geocoder.rb', line 3

def administrative_area_level_1
  @administrative_area_level_1
end

#administrative_area_level_2Object Also known as: county

Returns the value of attribute administrative_area_level_2

Returns:

  • (Object)

    the current value of administrative_area_level_2



3
4
5
# File 'lib/local_geocoder/geocoder.rb', line 3

def administrative_area_level_2
  @administrative_area_level_2
end

#countryObject

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



3
4
5
# File 'lib/local_geocoder/geocoder.rb', line 3

def country
  @country
end

Instance Method Details

#inspectObject



6
7
8
# File 'lib/local_geocoder/geocoder.rb', line 6

def inspect
  "#{self.country.inspect}, #{self.administrative_area_level_1.inspect}, #{self.administrative_area_level_2.inspect}"
end