Class: Geoloco::Location
- Inherits:
-
Struct
- Object
- Struct
- Geoloco::Location
- Extended by:
- Forwardable
- Defined in:
- lib/geoloco/location.rb,
lib/geoloco/location.rb
Overview
Location data
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#district ⇒ Object
Returns the value of attribute district.
-
#full_address ⇒ Object
Returns the value of attribute full_address.
-
#geometry ⇒ Object
Returns the value of attribute geometry.
-
#lat ⇒ Float
latitude.
-
#lng ⇒ Float
longitude.
-
#municipality ⇒ Object
Returns the value of attribute municipality.
-
#number ⇒ Object
Returns the value of attribute number.
-
#state ⇒ Object
Returns the value of attribute state.
-
#state_code ⇒ Object
Returns the value of attribute state_code.
-
#street ⇒ Object
Returns the value of attribute street.
-
#zipcode ⇒ Object
Returns the value of attribute zipcode.
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def city @city end |
#country ⇒ Object
Returns the value of attribute country
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def country @country end |
#country_code ⇒ Object
Returns the value of attribute country_code
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def country_code @country_code end |
#district ⇒ Object
Returns the value of attribute district
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def district @district end |
#full_address ⇒ Object
Returns the value of attribute full_address
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def full_address @full_address end |
#geometry ⇒ Object
Returns the value of attribute geometry
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def geometry @geometry end |
#lat ⇒ Float
latitude
28 29 30 |
# File 'lib/geoloco/location.rb', line 28 def lat @lat end |
#lng ⇒ Float
longitude
28 29 30 |
# File 'lib/geoloco/location.rb', line 28 def lng @lng end |
#municipality ⇒ Object
Returns the value of attribute municipality
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def municipality @municipality end |
#number ⇒ Object
Returns the value of attribute number
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def number @number end |
#state ⇒ Object
Returns the value of attribute state
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def state @state end |
#state_code ⇒ Object
Returns the value of attribute state_code
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def state_code @state_code end |
#street ⇒ Object
Returns the value of attribute street
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def street @street end |
#zipcode ⇒ Object
Returns the value of attribute zipcode
6 7 8 |
# File 'lib/geoloco/location.rb', line 6 def zipcode @zipcode end |