Class: Waqi::Service::City

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

Direct Known Subclasses

Station

Constant Summary

Constants inherited from Base

Base::BASE_URL

Instance Method Summary collapse

Methods inherited from Base

#get

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

#pathObject



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

def path
  URI.escape("/feed/#{@name}/")
end