Class: Waqi::Service::City
Direct Known Subclasses
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#initialize(name = 'here') ⇒ City
constructor
A new instance of City.
- #path ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(name = 'here') ⇒ City
Returns a new instance of City.
4 5 6 7 |
# File 'lib/waqi/services/city.rb', line 4 def initialize(name = 'here') super() @name = name end |
Instance Method Details
#path ⇒ Object
9 10 11 |
# File 'lib/waqi/services/city.rb', line 9 def path URI.escape("/feed/#{@name}/") end |