Class: SlackErrorNotifier::SlackConfiguration
- Inherits:
-
Object
- Object
- SlackErrorNotifier::SlackConfiguration
- Defined in:
- lib/slack_error_notifier/slack_configuration.rb
Instance Attribute Summary collapse
-
#slack_token ⇒ Object
readonly
Returns the value of attribute slack_token.
-
#target_channel ⇒ Object
readonly
Returns the value of attribute target_channel.
Instance Method Summary collapse
-
#initialize ⇒ SlackConfiguration
constructor
A new instance of SlackConfiguration.
- #slack_client ⇒ Object
Constructor Details
#initialize ⇒ SlackConfiguration
Returns a new instance of SlackConfiguration.
5 6 7 8 9 10 11 |
# File 'lib/slack_error_notifier/slack_configuration.rb', line 5 def initialize @slack_token = SlackErrorNotifier.access_token @target_channel = SlackErrorNotifier.target_channel configure_slack_client check_authentication check_target_channel_validity end |
Instance Attribute Details
#slack_token ⇒ Object (readonly)
Returns the value of attribute slack_token.
3 4 5 |
# File 'lib/slack_error_notifier/slack_configuration.rb', line 3 def slack_token @slack_token end |
#target_channel ⇒ Object (readonly)
Returns the value of attribute target_channel.
3 4 5 |
# File 'lib/slack_error_notifier/slack_configuration.rb', line 3 def target_channel @target_channel end |
Instance Method Details
#slack_client ⇒ Object
13 14 15 |
# File 'lib/slack_error_notifier/slack_configuration.rb', line 13 def slack_client @slack_client ||= Slack::Web::Client.new end |