Class: EventRouter::DeliveryAdapters::Sync

Inherits:
Base
  • Object
show all
Defined in:
lib/event_router/delivery_adapters/sync.rb

Class Method Summary collapse

Methods inherited from Base

validate_options!

Class Method Details

.deliver(event) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/event_router/delivery_adapters/sync.rb', line 6

def self.deliver(event)
  event.destinations.each do |_name, destination|
    payload = destination.extra_payload(event)

    destination.process(event, payload)
  end
end