Sha256: 487a60dc94dcd259edeb2436ff0b6b30920978fb9e324c3f65271cc508320dae

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

Stored size: 335 Bytes

Contents

class Freddy
  module Consumers
    class ResponseConsumer
      def initialize(logger)
        @logger = logger
      end

      def consume(channel, queue, &block)
        @logger.debug "Consuming messages on #{queue.name}"
        queue.subscribe do |delivery|
          block.call(delivery)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
freddy-1.4.1 lib/freddy/consumers/response_consumer.rb
freddy-1.4.0 lib/freddy/consumers/response_consumer.rb
freddy-1.3.3 lib/freddy/consumers/response_consumer.rb
freddy-jruby-1.3.2 lib/freddy/consumers/response_consumer.rb
freddy-1.3.2 lib/freddy/consumers/response_consumer.rb
freddy-1.3.1 lib/freddy/consumers/response_consumer.rb
freddy-1.3.0 lib/freddy/consumers/response_consumer.rb
freddy-1.2.0 lib/freddy/consumers/response_consumer.rb