Class: LocalGeocoder::Result
- Inherits:
-
Struct
- Object
- Struct
- LocalGeocoder::Result
- Defined in:
- lib/local_geocoder/geocoder.rb
Instance Attribute Summary collapse
-
#administrative_area_level_1 ⇒ Object
(also: #state)
Returns the value of attribute administrative_area_level_1.
-
#administrative_area_level_2 ⇒ Object
(also: #county)
Returns the value of attribute administrative_area_level_2.
-
#country ⇒ Object
Returns the value of attribute country.
Instance Method Summary collapse
Instance Attribute Details
#administrative_area_level_1 ⇒ Object Also known as: state
Returns the value of attribute 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_2 ⇒ Object Also known as: county
Returns the value of attribute 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 |
#country ⇒ Object
Returns the value of attribute country
3 4 5 |
# File 'lib/local_geocoder/geocoder.rb', line 3 def country @country end |
Instance Method Details
#inspect ⇒ Object
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 |