Sha256: 4aa8f3a1d0f7565e7c999bab517a9d78e896f2798489dea228ca44741560370f
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
# frozen_string_literal: true require 'uri' require 'json' module SlackWebhookLogger class RequestIO def self.close true end def self.write(payload) return if payload.blank? req = Net::HTTP::Post.new(SlackWebhookLogger.webhook_uri.path) req.set_form_data(payload: payload.to_json) SlackWebhookLogger.https.request(req) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack_webhook_logger-0.1.0 | lib/slack_webhook_logger/request_io.rb |