Sha256: 35949d1a403073141e34ad24fcb708aaadae2b6a264121662c6b3996cb9bad59

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

module FakeServiceBus
  module Actions
    class GetQueue

      def initialize(options = {})
        @server    = options.fetch(:server)
        @queues    = options.fetch(:queues)
        @responder = options.fetch(:responder)
        @request   = options.fetch(:request)
      end

      def call(queue_name, params)
        queue = @queues.get(queue_name, params)
        xml = Builder::XmlMarkup.new()
        @responder.queue xml, queue
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fake_servicebus-0.0.2 lib/fake_servicebus/actions/get_queue.rb