lib/china_aqi/base.rb in china_aqi-0.0.3 vs lib/china_aqi/base.rb in china_aqi-0.0.4
- old
+ new
@@ -52,9 +52,13 @@
config.china_aqi_token = "you_token"
#{'*' * 66}~ unless ChinaAqi.token
@token = ChinaAqi.token
end
+
+ def self.get(*args)
+ self.new(*args).get
+ end
end
# APIs with some parameters
class DynamicBase < Base
attr_accessor :city
\ No newline at end of file