Sha256: 9923d717d40a6068f7beb4df5304fdf9fbd62a71ed9d9e1578b14b9d377ec6c8

Contents?: true

Size: 1.04 KB

Versions: 98

Compression:

Stored size: 1.04 KB

Contents

module Fog
  module AWS
    class SQS
      class Real
        require 'fog/aws/parsers/sqs/list_queues'

        # List queues
        #
        # ==== Parameters
        # * options<~Hash>:
        #   * QueueNamePrefix<~String> - String used to filter results to only those with matching prefixes
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AWSSimpleQueueService/latest/APIReference/Query_QueryListQueues.html
        #

        def list_queues(options = {})
          request({
            'Action' => 'ListQueues',
            :parser  => Fog::Parsers::AWS::SQS::ListQueues.new
          }.merge!(options))
        end
      end

      class Mock
        def list_queues(options = {})
          Excon::Response.new.tap do |response|
            response.status = 200

            response.body = {
              'ResponseMetadata' => {
                'RequestId' => Fog::AWS::Mock.request_id
              },
              'QueueUrls' => data[:queues].keys
            }
          end
        end
      end
    end
  end
end

Version data entries

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.29.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.28.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.27.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.26.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.25.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.24.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.23.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.22.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.21.1 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.21.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.20.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.19.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.18.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.17.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.16.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.15.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.14.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.13.0 lib/fog/aws/requests/sqs/list_queues.rb
fog-aws-3.12.0 lib/fog/aws/requests/sqs/list_queues.rb