Class: Flipper::Notifications::Notifiers::WebhookNotifier
- Inherits:
-
Object
- Object
- Flipper::Notifications::Notifiers::WebhookNotifier
- Defined in:
- lib/flipper/notifications/notifiers/webhook_notifier.rb
Instance Method Summary collapse
- #call(event:) ⇒ Object
-
#initialize(webhook:) ⇒ WebhookNotifier
constructor
A new instance of WebhookNotifier.
Constructor Details
#initialize(webhook:) ⇒ WebhookNotifier
10 11 12 |
# File 'lib/flipper/notifications/notifiers/webhook_notifier.rb', line 10 def initialize(webhook:) @webhook = webhook end |
Instance Method Details
#call(event:) ⇒ Object
14 15 16 |
# File 'lib/flipper/notifications/notifiers/webhook_notifier.rb', line 14 def call(event:) WebhookNotificationJob.perform_later(webhook: @webhook, event: event) end |