Sha256: f70d079d8621e969c65836127eb2c8dcce5bca24efdfab14e194620589bae402

Contents?: true

Size: 480 Bytes

Versions: 13

Compression:

Stored size: 480 Bytes

Contents

module FakeSQS
  module Actions
    class GetQueueUrl

      def initialize(options = {})
        @server    = options.fetch(:server)
        @queues    = options.fetch(:queues)
        @responder = options.fetch(:responder)
      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)
        end
      end

    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fake_sqs-0.4.0 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.3.1 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.3.0 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.2.0 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.1.0 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.0.11 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.0.10 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.0.9 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.0.8 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.0.7 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.0.6 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.0.5 lib/fake_sqs/actions/get_queue_url.rb
fake_sqs-0.0.4 lib/fake_sqs/actions/get_queue_url.rb