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
1471 1472 1473 |
# File 'lib/ec2/right_ec2.rb', line 1471 def reset @result = [] end |
#tagend(name) ⇒ Object
1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 |
# File 'lib/ec2/right_ec2.rb', line 1461 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:
1458 1459 1460 |
# File 'lib/ec2/right_ec2.rb', line 1458 def (name, attributes) @snapshot = {} if name == 'item' end |