Class: GeocoderUs::Location
- Inherits:
-
Struct
- Object
- Struct
- GeocoderUs::Location
- Defined in:
- lib/geocoder_us.rb,
lib/geocoder_us.rb
Overview
A Location contains the following fields:
latitude
-
Latitude of the location
longitude
-
Longitude of the location
address
-
Street address of the result.
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
Instance Method Summary collapse
-
#coordinates ⇒ Object
The coordinates for this location.
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address
12 13 14 |
# File 'lib/geocoder_us.rb', line 12 def address @address end |
#latitude ⇒ Object
Returns the value of attribute latitude
12 13 14 |
# File 'lib/geocoder_us.rb', line 12 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude
12 13 14 |
# File 'lib/geocoder_us.rb', line 12 def longitude @longitude end |
Instance Method Details
#coordinates ⇒ Object
The coordinates for this location.
83 84 85 |
# File 'lib/geocoder_us.rb', line 83 def coordinates return [latitude, longitude] end |