Class: Slkecho::Configuration
- Inherits:
-
Object
- Object
- Slkecho::Configuration
- Defined in:
- lib/slkecho/configuration.rb
Instance Attribute Summary collapse
-
#slack_api_token ⇒ Object
Returns the value of attribute slack_api_token.
Instance Method Summary collapse
Instance Attribute Details
#slack_api_token ⇒ Object
Returns the value of attribute slack_api_token.
5 6 7 |
# File 'lib/slkecho/configuration.rb', line 5 def slack_api_token @slack_api_token end |
Instance Method Details
#validate ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/slkecho/configuration.rb', line 7 def validate if slack_api_token.nil? raise Slkecho::InvalidConfigurationError.new("slack_api_token is required.", :slack_api_token) end true end |