Class: ActiveWebhook::Queueing::SyncronousAdapter

Inherits:
BaseAdapter show all
Defined in:
lib/active_webhook/queueing/syncronous_adapter.rb

Instance Method Summary collapse

Methods inherited from BaseAdapter

build_hook, #format_first, fulfill_subscription, #fulfill_topic

Methods inherited from Adapter

attribute, attributes, #attributes, call, #component_configuration, component_configuration, component_name, #configuration, configuration, #initialize

Constructor Details

This class inherits a constructor from ActiveWebhook::Adapter

Instance Method Details

#callObject



6
7
8
9
10
11
# File 'lib/active_webhook/queueing/syncronous_adapter.rb', line 6

def call
  subscriptions.each do |subscription|
    self.class.fulfill_subscription subscription: subscription, **context
  end
  subscriptions.count
end