1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/sqs/get_queue_attributes.rb
2011-07-19 15:11:21 -05:00

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