Class: StatusCat::Checkers::Slack
- Defined in:
- lib/status_cat/checkers/slack.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ Slack
constructor
A new instance of Slack.
Methods inherited from Base
Constructor Details
#initialize ⇒ Slack
Returns a new instance of Slack.
5 6 7 8 9 10 11 12 13 |
# File 'lib/status_cat/checkers/slack.rb', line 5 def initialize return if gem_missing?('slack-ruby-client', defined?(::Slack)) @value = ::Slack.config.token @status = fail_on_exception do = ::Slack::Web::Client.new.auth_test .ok? ? nil : .to_s end end |