Method: ExceptionNotifier::SlackNotifier#initialize
- Defined in:
- lib/support/exception_slack_notify/exception_notification.rb
#initialize(options) ⇒ SlackNotifier
Returns a new instance of SlackNotifier.
12 13 14 15 16 17 18 19 20 |
# File 'lib/support/exception_slack_notify/exception_notification.rb', line 12 def initialize() begin webhook_url = .fetch(:webhook_url) @message_opts = .fetch(:additional_parameters, {}) @notifier = Slack::Notifier.new webhook_url, rescue @notifier = nil end end |