Class: Slack::Incoming::Webhooks
- Inherits:
-
Object
- Object
- Slack::Incoming::Webhooks
- 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
-
#webhook_url ⇒ Object
Returns the value of attribute webhook_url.
Instance Method Summary collapse
-
#initialize(webhook_url, options = {}) ⇒ Webhooks
constructor
A new instance of Webhooks.
Methods included from Request
Methods included from Connection
Methods included from Configuration
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, ={}) @webhook_url = webhook_url .each { |key, val| send("#{key}=", val) } end |
Instance Attribute Details
#webhook_url ⇒ Object
Returns the value of attribute webhook_url.
13 14 15 |
# File 'lib/slack/incoming/webhooks.rb', line 13 def webhook_url @webhook_url end |