Class: Flipper::Notifications::Webhooks::Slack
- Defined in:
- lib/flipper/notifications/webhooks/slack.rb
Constant Summary collapse
- MARKDOWN =
"mrkdwn"
Instance Attribute Summary
Attributes inherited from Webhook
Instance Method Summary collapse
Methods inherited from Webhook
#==, #initialize, #serialized_attributes
Constructor Details
This class inherits a constructor from Flipper::Notifications::Webhooks::Webhook
Instance Method Details
#notify(event:, context_markdown: nil) ⇒ Object
14 15 16 17 18 |
# File 'lib/flipper/notifications/webhooks/slack.rb', line 14 def notify(event:, context_markdown: nil) webhook_api_errors do self.class.post(url, body: request_body(event: event, context_markdown: context_markdown)) end end |