Class: Waqi::Service::Geolocation
- Defined in:
- lib/waqi/services/geolocation.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#initialize(lat, lon) ⇒ Geolocation
constructor
A new instance of Geolocation.
- #path ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(lat, lon) ⇒ Geolocation
Returns a new instance of Geolocation.
4 5 6 7 |
# File 'lib/waqi/services/geolocation.rb', line 4 def initialize(lat, lon) super() @lat, @lon = lat, lon end |
Instance Method Details
#path ⇒ Object
9 10 11 |
# File 'lib/waqi/services/geolocation.rb', line 9 def path "/feed/geo:#{@lat};#{@lon}/" end |