Class: Waqi::Service::Map

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

Constant Summary

Constants inherited from Base

Base::BASE_URL

Instance Method Summary collapse

Methods inherited from Base

#get

Constructor Details

#initialize(*bounds) ⇒ Map

Returns a new instance of Map.



4
5
6
# File 'lib/waqi/services/map.rb', line 4

def initialize(*bounds)
  super(latlng: bounds.take(4).join(','))
end

Instance Method Details

#pathObject



8
9
10
# File 'lib/waqi/services/map.rb', line 8

def path
  '/map/bounds/'.freeze
end