class ActionNotifier::Deliverers::SlackWebhookDeliverer
Public Instance Methods
deliver()
click to toggle source
# File lib/action_notifier/deliverers/slack_webhook_deliverer.rb, line 6 def deliver notifier.ping(message.body, message.options) end
notifier()
click to toggle source
# File lib/action_notifier/deliverers/slack_webhook_deliverer.rb, line 10 def notifier @notifier ||= Slack::Notifier.new(message.url || webhook_url) end
webhook_url()
click to toggle source
# File lib/action_notifier/deliverers/slack_webhook_deliverer.rb, line 14 def webhook_url ENV["SLACK_WEBHOOK_URL"] end