Business intelligence made simple
Updated style
Andrew Kane8070782ad271
diff --git a/lib/blazer/slack_notifier.rb b/lib/blazer/slack_notifier.rbindex 0c31da75..884077d7 100644--- a/lib/blazer/slack_notifier.rb+++ b/lib/blazer/slack_notifier.rb@@ -75,11 +75,11 @@ module Blazer}post_api("https://slack.com/api/chat.postMessage", payload, headers)else- post_api(Blazer.slack_webhook_url, payload)+ post_api(Blazer.slack_webhook_url, payload, {})endend- def self.post_api(url, payload, headers = {})+ def self.post_api(url, payload, headers)uri = URI.parse(url)http = Net::HTTP.new(uri.host, uri.port)http.use_ssl = true