Sha256: 49ed23bf9f4f16c4c0b98d469f0f8402d8fccdf64b45691e484dfad3acd77283
Contents?: true
Size: 262 Bytes
Versions: 2
Compression:
Stored size: 262 Bytes
Contents
module ResqueBus # publishes on a delay class Publisher def self.perform(event_type, attributes = {}) ResqueBus.log_worker("Publisher running: #{event_type} - #{attributes.inspect}") ResqueBus.publish(event_type, attributes) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resque-bus-0.2.4 | lib/resque_bus/publisher.rb |
resque-bus-0.2.3 | lib/resque_bus/publisher.rb |