class Slackoff::Webhook
Public Class Methods
new(uri)
click to toggle source
# File lib/slackoff.rb, line 13 def initialize(uri) @uri = URI(uri) end
Public Instance Methods
send(message)
click to toggle source
# File lib/slackoff.rb, line 17 def send(message) connection = Slackoff::HTTPS.new(@uri) connection.send message end