Sha256: 5f5c1d04d16a76995602202a333e015b768626099b8736769863d3bd5a1a2a36

Contents?: true

Size: 327 Bytes

Versions: 12

Compression:

Stored size: 327 Bytes

Contents

module QueueBus
  # publishes on a delay
  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

12 entries across 12 versions & 1 rubygems

Version Path
queue-bus-0.9.0 lib/queue_bus/publisher.rb
queue-bus-0.8.1 lib/queue_bus/publisher.rb
queue-bus-0.8.0 lib/queue_bus/publisher.rb
queue-bus-0.7.0 lib/queue_bus/publisher.rb
queue-bus-0.6.0 lib/queue_bus/publisher.rb
queue-bus-0.5.9 lib/queue_bus/publisher.rb
queue-bus-0.5.8 lib/queue_bus/publisher.rb
queue-bus-0.5.7 lib/queue_bus/publisher.rb
queue-bus-0.5.6 lib/queue_bus/publisher.rb
queue-bus-0.5.5 lib/queue_bus/publisher.rb
queue-bus-0.5.4 lib/queue_bus/publisher.rb
queue-bus-0.5.3 lib/queue_bus/publisher.rb