Class: Access::Geolocation
- Inherits:
-
Object
- Object
- Access::Geolocation
- Defined in:
- lib/access/geolocation.rb
Instance Attribute Summary collapse
-
#lat ⇒ Object
Returns the value of attribute lat.
-
#lon ⇒ Object
Returns the value of attribute lon.
Instance Method Summary collapse
-
#initialize(geolocation = {}) ⇒ Geolocation
constructor
A new instance of Geolocation.
Constructor Details
#initialize(geolocation = {}) ⇒ Geolocation
Returns a new instance of Geolocation.
5 6 7 8 |
# File 'lib/access/geolocation.rb', line 5 def initialize(geolocation = {}) @lat = geolocation['lat'] @lon = geolocation['lon'] end |
Instance Attribute Details
#lat ⇒ Object
Returns the value of attribute lat.
3 4 5 |
# File 'lib/access/geolocation.rb', line 3 def lat @lat end |
#lon ⇒ Object
Returns the value of attribute lon.
3 4 5 |
# File 'lib/access/geolocation.rb', line 3 def lon @lon end |