Class: RightAws::Ec2::QEc2DescribeSnapshotsParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::Ec2::QEc2DescribeSnapshotsParser
- Defined in:
- lib/ec2/right_ec2.rb
Overview
PARSERS: EBS - Snapshots
Constant Summary
Constants inherited from RightAWSParser
RightAWSParser::DEFAULT_XML_LIBRARY
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
1815 1816 1817 |
# File 'lib/ec2/right_ec2.rb', line 1815 def reset @result = [] end |
#tagend(name) ⇒ Object
1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 |
# File 'lib/ec2/right_ec2.rb', line 1805 def tagend(name) case name when 'volumeId' then @snapshot[:aws_volume_id] = @text when 'snapshotId' then @snapshot[:aws_id] = @text when 'status' then @snapshot[:aws_status] = @text when 'startTime' then @snapshot[:aws_started_at] = Time.parse(@text) when 'progress' then @snapshot[:aws_progress] = @text when 'item' then @result << @snapshot end end |
#tagstart(name, attributes) ⇒ Object
:nodoc:
1802 1803 1804 |
# File 'lib/ec2/right_ec2.rb', line 1802 def (name, attributes) @snapshot = {} if name == 'item' end |