Sha256: dd9a5dfe70f339367924ed8d148845fe3aeb06b7449998eefbe67f6e4fb85ed6

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

module FakeServiceBus
  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

1 entries across 1 versions & 1 rubygems

Version Path
fake_servicebus-0.0.2 lib/fake_servicebus/queue_factory.rb