Sha256: 93643f5ee0f7fc23099ce3190afd7c9b7e8b5469035f0d96e23790c352850ebc
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
module ChinaAqi # Fetch data for one monitoring station # # example: # # ChinaAqi::Station.new('1141A').get # # same as: # # ChinaAqi::CityStations.get(station_code) # # You can get all station codes for one city like this: # # ChinaAqi::CityStations.new(station_code).get # # or like this: # # ChinaAqi.get_stations_for_city(city) # # and like this: # # ChinaAqi::CityStations.get(city) class Station < Base self.method = :aqis_by_station attr_accessor :station_code def initialize(station_code) super @station_code = station_code @parmas = { station_code: station_code, token: ChinaAqi.token } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
china_aqi-0.0.1 | lib/china_aqi/aqi/station.rb |