Class: QueueBus::Publisher
- Inherits:
-
Object
- Object
- QueueBus::Publisher
- Defined in:
- lib/queue_bus/publisher.rb
Overview
publishes on a delay
Class Method Summary collapse
Class Method Details
.perform(attributes) ⇒ Object
6 7 8 9 10 |
# File 'lib/queue_bus/publisher.rb', line 6 def perform(attributes) event_type = attributes["bus_event_type"] ::QueueBus.log_worker("Publisher running: #{event_type} - #{attributes.inspect}") ::QueueBus.publish(event_type, attributes) end |