Class: Waqi::Service::Geolocation

Inherits:
Base
  • Object
show all
Defined in:
lib/waqi/services/geolocation.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL

Instance Method Summary collapse

Methods inherited from Base

#get

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

#pathObject



9
10
11
# File 'lib/waqi/services/geolocation.rb', line 9

def path
  "/feed/geo:#{@lat};#{@lon}/"
end