Sha256: 1c92061bdf6e2520f55fe1d3e81de914d9a2132295c0483219f92523ddde6df1
Contents?: true
Size: 575 Bytes
Versions: 3
Compression:
Stored size: 575 Bytes
Contents
module FakeSQS module Actions class GetQueueUrl def initialize(options = {}) @server = options.fetch(:server) @queues = options.fetch(:queues) @responder = options.fetch(:responder) @request = options.fetch(:request) end def call(params) name = params.fetch("QueueName") queue = @queues.get(name, params) @responder.call :GetQueueUrl do |xml| xml.QueueUrl @server.url_for(queue.name, {:host => @request.host, :port => @request.port}) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fake_sqs-0.4.3 | lib/fake_sqs/actions/get_queue_url.rb |
fake_sqs-0.4.2 | lib/fake_sqs/actions/get_queue_url.rb |
fake_sqs-0.4.1 | lib/fake_sqs/actions/get_queue_url.rb |