class Noticed::DeliveryMethods::Slack
Public Instance Methods
deliver()
click to toggle source
# File lib/noticed/delivery_methods/slack.rb, line 4 def deliver post(url, json: format) end
Private Instance Methods
format()
click to toggle source
# File lib/noticed/delivery_methods/slack.rb, line 10 def format if (method = options[:format]) notification.send(method) else notification.params end end
url()
click to toggle source
# File lib/noticed/delivery_methods/slack.rb, line 18 def url if (method = options[:url]) notification.send(method) else Rails.application.credentials.slack[:notification_url] end end