Module: Slack::Config
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/slack-wrapper/config.rb', line 4 def logger @logger end |
#token ⇒ Object
Returns the value of attribute token.
4 5 6 |
# File 'lib/slack-wrapper/config.rb', line 4 def token @token end |
Instance Method Details
#reset ⇒ Object
5 6 7 8 |
# File 'lib/slack-wrapper/config.rb', line 5 def reset self.token = ENV['SLACK_TOKEN'] ? ENV['SLACK_TOKEN'] : nil self.logger = ENV['LOG_LEVEL'] ? ENV['LOG_LEVEL'] : nil end |