Sha256: 824a7b3c5860753c061a2cf818964646288b7c9df4201fc55f52e0edfdbac574

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

require "message_queue/options_helper"

module MessageQueue
  class Consumer
    include OptionsHelper

    attr_reader :connection, :options

    def initialize(connection, options = {})
      @connection = connection
      @options = deep_clone(options)
    end

    def load_object(object)
      connection.serializer.load(object)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
message_queue-0.1.1 lib/message_queue/consumer.rb
message_queue-0.1.0 lib/message_queue/consumer.rb