Class/Module Index [+]

Quicksearch

Fog::Parsers::AWS::RDS::TagListParser

parses an XML-formatted list of resource tags from AWS

Public Instance Methods

end_element(name) click to toggle source
# File lib/fog/aws/parsers/rds/tag_list_parser.rb, line 16
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
reset() click to toggle source

each tag is modeled as a String pair (2-element Array)

# File lib/fog/aws/parsers/rds/tag_list_parser.rb, line 9
def reset
  @this_key   = nil
  @this_value = nil
  @tags       = Hash.new
  @response   = {'ListTagsForResourceResult' => {'TagList' => {}}}
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.