Class: Slack::Incoming::Webhooks

Inherits:
Object
  • Object
show all
Includes:
Configuration, Connection, Request
Defined in:
lib/slack/incoming/webhooks.rb,
lib/slack/incoming/webhooks/version.rb

Constant Summary collapse

VERSION =
"0.3.0"

Constants included from Configuration

Configuration::VALID_OPTIONS_KEYS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Request

#post

Methods included from Connection

#connection

Methods included from Configuration

#payload

Constructor Details

#initialize(webhook_url, options = {}) ⇒ Webhooks

Returns a new instance of Webhooks.



15
16
17
18
# File 'lib/slack/incoming/webhooks.rb', line 15

def initialize(webhook_url, options={})
  @webhook_url = webhook_url
  options.each { |key, val| send("#{key}=", val) }
end

Instance Attribute Details

#webhook_urlObject

Returns the value of attribute webhook_url.



13
14
15
# File 'lib/slack/incoming/webhooks.rb', line 13

def webhook_url
  @webhook_url
end