Class: RightAws::Ec2::QEc2DescribePlacementGroupsParser

Inherits:
RightAWSParser
  • Object
show all
Defined in:
lib/ec2/right_ec2_placement_groups.rb

Overview


PARSERS: Placement Groups

Constant Summary

Constants inherited from RightAWSParser

RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAWSParser

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

Instance Method Summary collapse

Methods inherited from 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



102
103
104
# File 'lib/ec2/right_ec2_placement_groups.rb', line 102

def reset
  @result = []
end

#tagend(name) ⇒ Object



94
95
96
97
98
99
100
101
# File 'lib/ec2/right_ec2_placement_groups.rb', line 94

def tagend(name)
  case name
  when 'groupName' then @item[:group_name] = @text
  when 'strategy'  then @item[:strategy]   = @text
  when 'state'     then @item[:state]      = @text
  when 'item'      then @result           << @item
  end
end

#tagstart(name, attributes) ⇒ Object

:nodoc:



89
90
91
92
93
# File 'lib/ec2/right_ec2_placement_groups.rb', line 89

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