Class: RightAws::Ec2::QEc2CreateKeyPairParser

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



799
800
801
802
803
804
805
# File 'lib/ec2/right_ec2.rb', line 799

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



796
797
798
# File 'lib/ec2/right_ec2.rb', line 796

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