Class: RightAws::Ec2::QEc2DescribeImagesParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::Ec2::QEc2DescribeImagesParser
- Defined in:
- lib/ec2/right_ec2.rb
Instance Attribute Summary
Attributes inherited from RightAWSParser
Instance Method Summary collapse
Methods inherited from RightAWSParser
#initialize, #method_missing, #parse, #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
#reset ⇒ Object
837 838 839 |
# File 'lib/ec2/right_ec2.rb', line 837 def reset @result = [] end |
#tagend(name) ⇒ Object
826 827 828 829 830 831 832 833 834 835 836 |
# File 'lib/ec2/right_ec2.rb', line 826 def tagend(name) case name when 'imageId' ; @image.imageId = @text when 'imageLocation' ; @image.imageLocation = @text when 'imageState' ; @image.imageState = @text when 'imageOwnerId' ; @image.imageOwnerId = @text when 'isPublic' ; @image.isPublic = @text == 'true' ? true : false when 'productCode' ; (@image.productCodes ||= []) << @text when 'item' ; @result << @image if @xmlpath[%r{.*/imagesSet$}] end end |
#tagstart(name, attributes) ⇒ Object
821 822 823 824 825 |
# File 'lib/ec2/right_ec2.rb', line 821 def (name, attributes) if name == 'item' && @xmlpath[%r{.*/imagesSet$}] @image = QEc2DescribeImagesResponseItemType.new end end |