Class: RightAws::Ec2::QEc2CreateKeyPairParser

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

Overview

:nodoc:

Constant Summary

Constants inherited from RightAWSParser

RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from RightAWSParser

#result, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from RightAWSParser

#initialize, #method_missing, #parse, #reset, #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

#tagend(name) ⇒ Object



830
831
832
833
834
835
836
# File 'lib/ec2/right_ec2.rb', line 830

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

#tagstart(name, attributes) ⇒ Object



827
828
829
# File 'lib/ec2/right_ec2.rb', line 827

def tagstart(name, attributes)
  @result = QEc2CreateKeyPairType.new if !@result
end