Class: Noticed::DeliveryMethods::Slack
- Inherits:
-
Noticed::DeliveryMethod
- Object
- Noticed::DeliveryMethod
- Noticed::DeliveryMethods::Slack
- Defined in:
- lib/noticed/delivery_methods/slack.rb
Constant Summary collapse
- DEFAULT_URL =
"https://slack.com/api/chat.postMessage"
Instance Attribute Summary
Attributes inherited from Noticed::DeliveryMethod
#config, #event, #notification
Instance Method Summary collapse
Methods inherited from Noticed::DeliveryMethod
#evaluate_option, #fetch_constant, #perform
Methods included from ApiClient
Instance Method Details
#deliver ⇒ Object
8 9 10 |
# File 'lib/noticed/delivery_methods/slack.rb', line 8 def deliver post_request url, headers: evaluate_option(:headers), json: evaluate_option(:json) end |
#url ⇒ Object
12 13 14 |
# File 'lib/noticed/delivery_methods/slack.rb', line 12 def url evaluate_option(:url) || DEFAULT_URL end |