Class: Aws::Ec2::QEc2DescribeKeyPairParser

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

Overview


PARSERS: Key Pair

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

#resetObject



1475
1476
1477
# File 'lib/ec2/ec2.rb', line 1475

def reset
  @result = [];
end

#tagend(name) ⇒ Object



1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
# File 'lib/ec2/ec2.rb', line 1464

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

#tagstart(name, attributes) ⇒ Object

:nodoc:



1460
1461
1462
# File 'lib/ec2/ec2.rb', line 1460

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