Sha256: a44174ba1b8b1c9e3f5e0fc0b8d39957ef6f9a4ca382dca181c9a4e1626a4fdb

Contents?: true

Size: 403 Bytes

Versions: 5

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

require "flipper/notifications/jobs/webhook_notification_job"

module Flipper
  module Notifications
    module Notifiers
      class WebhookNotifier

        def initialize(webhook:)
          @webhook = webhook
        end

        def call(event:)
          WebhookNotificationJob.perform_later(webhook: @webhook, event: event)
        end

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flipper-notifications-0.1.5 lib/flipper/notifications/notifiers/webhook_notifier.rb
flipper-notifications-0.1.4 lib/flipper/notifications/notifiers/webhook_notifier.rb
flipper-notifications-0.1.3 lib/flipper/notifications/notifiers/webhook_notifier.rb
flipper-notifications-0.1.2 lib/flipper/notifications/notifiers/webhook_notifier.rb
flipper-notifications-0.1.1 lib/flipper/notifications/notifiers/webhook_notifier.rb