Class: Waqi::Service::Map
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#initialize(*bounds) ⇒ Map
constructor
A new instance of Map.
- #path ⇒ Object
Methods inherited from Base
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
#path ⇒ Object
8 9 10 |
# File 'lib/waqi/services/map.rb', line 8 def path '/map/bounds/'.freeze end |