Sha256: 3a240d30f3df5c9d55b7a9a668a902b1f9c54e4e799b98873614ca2ae8f90616
Contents?: true
Size: 549 Bytes
Versions: 8
Compression:
Stored size: 549 Bytes
Contents
# frozen_string_literal: true module QueueBus # A simple publishing worker for QueueBus. Makes publishing asynchronously possible since # it may be enqueued to the background worker with a delay. This will allow the event to # be published at a later time. class Publisher class << self def perform(attributes) event_type = attributes['bus_event_type'] ::QueueBus.log_worker("Publisher running: #{event_type} - #{attributes.inspect}") ::QueueBus.publish(event_type, attributes) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems