Module: Slack::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/slack-wrapper/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



4
5
6
# File 'lib/slack-wrapper/config.rb', line 4

def logger
  @logger
end

#tokenObject

Returns the value of attribute token.



4
5
6
# File 'lib/slack-wrapper/config.rb', line 4

def token
  @token
end

Instance Method Details

#resetObject



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