Sha256: 46f9553eb1bbe44257386529b50c6cb59baed8f3ea7c7ce47d6d5c8da274b4ad
Contents?: true
Size: 575 Bytes
Versions: 3
Compression:
Stored size: 575 Bytes
Contents
module FakeSQS module Actions class ListQueues def initialize(options = {}) @server = options.fetch(:server) @queues = options.fetch(:queues) @responder = options.fetch(:responder) @request = options.fetch(:request) end def call(params) found = @queues.list(params) @responder.call :ListQueues do |xml| found.each do |queue| xml.QueueUrl @server.url_for(queue.name, {:host => @request.host, :port => @request.port}) end 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/list_queues.rb |
fake_sqs-0.4.2 | lib/fake_sqs/actions/list_queues.rb |
fake_sqs-0.4.1 | lib/fake_sqs/actions/list_queues.rb |