Sha256: ef8d9c113fee0a2d1e2ed4deb156bfcf9018845bf7dcb0af9641cecbe2d3e205
Contents?: true
Size: 684 Bytes
Versions: 1
Compression:
Stored size: 684 Bytes
Contents
module ChinaAqi # Fetch data for one monitoring station # # example: # # ChinaAqi::Station.new('1141A').get # # same as: # # ChinaAqi::Station.get(station_code) # # You can get all station codes for one city like this: # # ChinaAqi::Station.new(station_code).get # # or like this: # # ChinaAqi.get_stations_for_city(city) # # and like this: # # ChinaAqi::Station.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.5 | lib/china_aqi/aqi/station.rb |