Sha256: c00d15a48008a5aff8cdeae3f01b9ae8e2471220aa45e96f7861772f2320616e

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

require 'hat/middlewares/worker/json'
module Examples
  class Subscriber < Hat::Worker
    include Hat::Middlewares::Worker::JSON

    queue 'hat.examples.subscriber'

    def perform(delivery_info, properties, payload)
      logger.info payload
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rabbit-hat-0.0.1 examples/subscriber.rb