Sha256: fa20aa188eaa66ec0bd4335fa802f19d81749e1355fad62f808608db4458dac8

Contents?: true

Size: 197 Bytes

Versions: 2

Compression:

Stored size: 197 Bytes

Contents

module Rocketman
  module Producer
    def emit(event, payload = {})
      event = Rocketman::Event.new(event.to_sym, payload)
      Rocketman::Pool.instance.jobs.schedule(event)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rocketman-0.3.0 lib/rocketman/producer.rb
rocketman-0.2.0 lib/rocketman/producer.rb