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/parsers/sns/list_topics.rb

27 lines
464 B
Ruby
Raw Normal View History

2011-01-14 03:55:33 -05:00
module Fog
module Parsers
module AWS
module SNS
class ListTopics < Fog::Parsers::Base
def reset
@response = { 'Topics' => [] }
end
def end_element(name)
case name
2011-02-01 03:49:32 -05:00
when 'TopicArn'
@response['Topics'] << @value
2011-01-14 03:55:33 -05:00
when 'NextToken', 'RequestId'
response[name] = @value
end
end
end
end
end
end
end