Class: Flipper::Notifications::Notifiers::WebhookNotifier

Inherits:
Object
  • Object
show all
Defined in:
lib/flipper/notifications/notifiers/webhook_notifier.rb

Instance Method Summary collapse

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