mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
29 lines
575 B
Ruby
29 lines
575 B
Ruby
module Fog
|
|
module AWS
|
|
class SQS
|
|
class Real
|
|
|
|
require 'fog/aws/parsers/sqs/get_queue_attributes'
|
|
|
|
def get_queue_attributes(name)
|
|
request({
|
|
'Action' => 'GetQueueAttributes',
|
|
'AttributeName' => 'All',
|
|
:path => path_from_queue_name(name),
|
|
:parser => Fog::Parsers::AWS::SQS::GetQueueAttributes.new
|
|
})
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def get_queue_attributes(name)
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|