Class: ResqueBus::Publisher

Inherits:
Object
  • Object
show all
Defined in:
lib/resque_bus/publisher.rb

Overview

publishes on a delay

Class Method Summary collapse

Class Method Details

.perform(event_type, attributes = {}) ⇒ Object



5
6
7
8
# File 'lib/resque_bus/publisher.rb', line 5

def perform(event_type, attributes = {})
  ResqueBus.log_worker("Publisher running: #{event_type} - #{attributes.inspect}")
  ResqueBus.publish(event_type, attributes)
end