Class: Aws::Ec2::QEc2DescribeImagesParser
- Defined in:
- lib/ec2/ec2.rb
Overview
PARSERS: Images
Constant Summary
Constants inherited from AwsParser
AwsParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from AwsParser
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
#reset ⇒ Object
1758 1759 1760 |
# File 'lib/ec2/ec2.rb', line 1758 def reset @result = [] end |
#tagend(name) ⇒ Object
1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 |
# File 'lib/ec2/ec2.rb', line 1721 def tagend(name) case name when 'imageId' then @image[:aws_id] = @text when 'name' then @image[:aws_name] = @text when 'description' then @image[:aws_description] = @text when 'imageLocation' then @image[:aws_location] = @text when 'imageState' then @image[:aws_state] = @text when 'imageOwnerId' then @image[:aws_owner] = @text when 'isPublic' then @image[:aws_is_public]= @text == 'true' ? true : false when 'productCode' then (@image[:aws_product_codes] ||= []) << @text when 'architecture' then @image[:aws_architecture] = @text when 'imageType' then @image[:aws_image_type] = @text when 'kernelId' then @image[:aws_kernel_id] = @text when 'ramdiskId' then @image[:aws_ramdisk_id] = @text when 'rootDeviceType' then @image[:aws_root_device_type] = @text when 'rootDeviceName' then @image[:aws_root_device_name] = @text when 'hypervisor' then @image[:aws_hypervisor] = @text when 'item' then @result << @image if @xmlpath[%r{.*/imagesSet$}] end end |
#tagstart(name, attributes) ⇒ Object
:nodoc:
1715 1716 1717 1718 1719 |
# File 'lib/ec2/ec2.rb', line 1715 def (name, attributes) if name == 'item' && @xmlpath[%r{.*/imagesSet$}] @image = {} end end |