We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db7d51c commit d23f3d9Copy full SHA for d23f3d9
docs/delivery_methods/slack.md
@@ -1,19 +1,18 @@
1
-### Slack Delivery Method
2
-
3
-Sends a Slack notification via webhook.
4
5
-`deliver_by :slack`
6
7
-##### Options
8
9
-* `format: :format_for_slack` - *Optional*
10
11
- Use a custom method to define the payload sent to Slack. Method should return a Hash.
12
13
-* `url: :url_for_slack` - *Optional*
14
15
- Use a custom method to retrieve the Slack Webhook URL. Method should return a String.
16
17
- Defaults to `Rails.application.credentials.slack[:notification_url]`
18
19
+# Slack Delivery Method
+
+Send a Slack message to notify users in a channel.
+## Usage
+```ruby
+class CommentNotification
+ deliver_by :slack do |config|
+ config.url = "https://slack.com..."
+ config.json = -> {
+ {
+ # ...
+ }
+ end
+end
+```
0 commit comments