lib/resque/failure/slack.rb
# Sends a HTTP Post to the Slack api.
#
Sends a HTTP Post to the Slack api.
Sends a HTTP Post to the Slack api .
def report_exception
        uri = URI.parse(self.class.webhook)
        params = { 'text' => text }
        Net::HTTP.post(uri, params.to_json, "Content-Type" => "application/json")
      end
def report_exception uri = URI . parse ( self . class . webhook ) params = { 'text' => text } Net :: HTTP . post ( uri , params . to_json , "Content-Type" => "application/json" ) end
Sends a HTTP Post to the Slack api.
Sends a HTTP Post to the Slack api .