Class: RightAws::Ec2::QEc2DescribeKeyPairParser

Inherits:
RightAWSParser show all
Defined in:
lib/ec2/right_ec2.rb

Instance Attribute Summary

Attributes inherited from RightAWSParser

#result, #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



790
791
792
# File 'lib/ec2/right_ec2.rb', line 790

def reset
  @result = [];    
end

#tagend(name) ⇒ Object



783
784
785
786
787
788
789
# File 'lib/ec2/right_ec2.rb', line 783

def tagend(name)
  case name 
    when 'keyName'       ; @item.keyName        = @text
    when 'keyFingerprint'; @item.keyFingerprint = @text
    when 'item'          ; @result             << @item
  end
end

#tagstart(name, attributes) ⇒ Object



780
781
782
# File 'lib/ec2/right_ec2.rb', line 780

def tagstart(name, attributes)
  @item = QEc2DescribeKeyPairType.new if name == 'item'
end