Class: Aws::Ec2::QEc2CreateKeyPairParser

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

Overview

:nodoc:

Constant Summary

Constants inherited from AwsParser

AwsParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from AwsParser

#result, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from AwsParser

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

Constructor Details

This class inherits a constructor from Aws::AwsParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Aws::AwsParser

Instance Method Details

#tagend(name) ⇒ Object



1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
# File 'lib/ec2/ec2.rb', line 1594

def tagend(name)
  case name
    when 'keyName' then
      @result[:aws_key_name] = @text
    when 'keyFingerprint' then
      @result[:aws_fingerprint] = @text
    when 'keyMaterial' then
      @result[:aws_material] = @text
  end
end

#tagstart(name, attributes) ⇒ Object



1590
1591
1592
# File 'lib/ec2/ec2.rb', line 1590

def tagstart(name, attributes)
  @result = {} if name == 'CreateKeyPairResponse'
end