Method: Waqi::Resource::CityFeed#get_city_feed

Defined in:
lib/waqi/resources/city_feed.rb

#get_city_feed(city) ⇒ Hash, string

@pathparams:

Parameters:

  • `city` (String)
    • Name of the city (eg beijing), or id (eg @7397)

Returns:

  • (Hash)

    data - The station data.

  • (string)

    status - The status code. can be ok or error.



16
17
18
# File 'lib/waqi/resources/city_feed.rb', line 16

def get_city_feed(city)
    get("/feed/#{city}")
end