Sha256: dfb0f2ca105020e305f53c38930cdfca8c9028555504e873edadb06317426e43

Contents?: true

Size: 419 Bytes

Versions: 4

Compression:

Stored size: 419 Bytes

Contents

require "china_aqi/version"
module ChinaAqi
  def self.token
    @token ||= begin
      if Module.const_defined?('Rails')
        Rails.application.config.china_aqi_token if Rails.application.config.respond_to?(:china_aqi_token)
      end
    end
  end

  def self.token=(token_string)
    @token = token_string
  end
end

require 'china_aqi/base'
require 'china_aqi/exceptions'
require 'china_aqi/helper/city_stations'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
china_aqi-0.0.4 lib/china_aqi.rb
china_aqi-0.0.3 lib/china_aqi.rb
china_aqi-0.0.2 lib/china_aqi.rb
china_aqi-0.0.1 lib/china_aqi.rb