Class: Access::Geolocation

Inherits:
Object
  • Object
show all
Defined in:
lib/access/geolocation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#latObject

Returns the value of attribute lat.



3
4
5
# File 'lib/access/geolocation.rb', line 3

def lat
  @lat
end

#lonObject

Returns the value of attribute lon.



3
4
5
# File 'lib/access/geolocation.rb', line 3

def lon
  @lon
end