Sha256: 4f3fb4c109080cfc923a0fdc5fa696dff21d854ef15258d2fb20bc112226bf3b

Contents?: true

Size: 323 Bytes

Versions: 18

Compression:

Stored size: 323 Bytes

Contents

module FakeSQS
  class QueueFactory

    attr_reader :message_factory, :queue

    def initialize(options = {})
      @message_factory = options.fetch(:message_factory)
      @queue = options.fetch(:queue)
    end

    def new(options)
      queue.new(options.merge(:message_factory => message_factory))
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
fake_sqs-0.4.3 lib/fake_sqs/queue_factory.rb
fake_sqs-0.4.2 lib/fake_sqs/queue_factory.rb
fake_sqs-0.4.1 lib/fake_sqs/queue_factory.rb
fake_sqs-0.4.0 lib/fake_sqs/queue_factory.rb
fake_sqs-0.3.1 lib/fake_sqs/queue_factory.rb
fake_sqs-0.3.0 lib/fake_sqs/queue_factory.rb
fake_sqs-0.2.0 lib/fake_sqs/queue_factory.rb
fake_sqs-0.1.0 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.11 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.10 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.9 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.8 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.7 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.6 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.5 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.4 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.3 lib/fake_sqs/queue_factory.rb
fake_sqs-0.0.2 lib/fake_sqs/queue_factory.rb