Class: RightAws::RdsInterface::DescribeDbParameterGroupsParser

Inherits:
RightAws::RightAWSParser show all
Defined in:
lib/rds/right_rds_interface.rb

Overview


DB Security Groups

Constant Summary

Constants inherited from RightAws::RightAWSParser

RightAws::RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAws::RightAWSParser

#full_tag_name, #result, #tag, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightAws::RightAWSParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=

Constructor Details

This class inherits a constructor from RightAws::RightAWSParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightAws::RightAWSParser

Instance Method Details

#resetObject

:nodoc:



888
889
890
891
# File 'lib/rds/right_rds_interface.rb', line 888

def reset
  @m = [ 'DBParameterGroup', 'CreateDBParameterGroupResult', 'ModifyDBParameterGroupResult' ]
  @result = { :db_parameter_groups => [] }
end

#tagend(name) ⇒ Object



897
898
899
900
901
902
903
904
905
906
# File 'lib/rds/right_rds_interface.rb', line 897

def tagend(name)
  case name
  when 'Marker'               then @result[:marker]       = @text
  when 'MaxRecords'           then @result[:max_records]  = @text.to_i
  when 'DBParameterGroupName' then @item[:name]        = @text
  when 'Description'          then @item[:description] = @text
  when 'Engine'               then @item[:engine]      = @text
  when *@m                    then @result[:db_parameter_groups] << @item
  end
end

#tagstart(name, attributes) ⇒ Object



892
893
894
895
896
# File 'lib/rds/right_rds_interface.rb', line 892

def tagstart(name, attributes)
  case name
    when *@m then @item = { }
  end
end