Sha256: eba05205cdb27a61ecce9bee297d84abc1b68f5d599e54028531a4cf9101a5bd
Contents?: true
Size: 921 Bytes
Versions: 72
Compression:
Stored size: 921 Bytes
Contents
module Fog module Parsers module AWS module RDS # parses an XML-formatted list of resource tags from AWS class TagListParser < Fog::Parsers::Base # each tag is modeled as a String pair (2-element Array) def reset @this_key = nil @this_value = nil @tags = Hash.new @response = {'ListTagsForResourceResult' => {'TagList' => {}}} end def end_element(name) super case name when 'Tag' @tags[@this_key] = @this_value @this_key, @this_value = nil, nil when 'Key' @this_key = value when 'Value' @this_value = value when 'TagList' @response['ListTagsForResourceResult']['TagList'] = @tags end end end end end end end
Version data entries
72 entries across 72 versions & 9 rubygems