lib/qiita_trend/configuration.rb in qiita_trend-0.4.8 vs lib/qiita_trend/configuration.rb in qiita_trend-0.4.9
- old
+ new
@@ -21,11 +21,11 @@
attr_accessor :cache_directory
# コンストラクタ
# Configurationクラスのインスタンスを返します
def initialize
- @user_name = nil
- @password = nil
- @cache_directory = nil
+ @user_name = ENV['QIITA_TREND_USER_NAME']
+ @password = ENV['QIITA_TREND_PASSWORD']
+ @cache_directory = ENV['QIITA_TREND_CACHE_DIR']
end
end
end