Class: RightAws::Ec2::QEc2DescribeSnapshotsParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::Ec2::QEc2DescribeSnapshotsParser
- Defined in:
- lib/ec2/right_ec2_ebs.rb
Overview
PARSERS: EBS - Snapshots
Constant Summary
Constants inherited from RightAWSParser
RightAWSParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary
Attributes inherited from RightAWSParser
#full_tag_name, #result, #tag, #xml_lib, #xmlpath
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
426 427 428 429 |
# File 'lib/ec2/right_ec2_ebs.rb', line 426 def reset @each = ['item', 'CreateSnapshotResponse'] @result = [] end |
#tagend(name) ⇒ Object
413 414 415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/ec2/right_ec2_ebs.rb', line 413 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] = @text when 'progress' then @snapshot[:aws_progress] = @text when 'description' then @snapshot[:aws_description] = @text when 'ownerId' then @snapshot[:aws_owner] = @text when 'volumeSize' then @snapshot[:aws_volume_size] = @text.to_i when *@each then @result << @snapshot end end |
#tagstart(name, attributes) ⇒ Object
:nodoc:
408 409 410 411 412 |
# File 'lib/ec2/right_ec2_ebs.rb', line 408 def (name, attributes) case name when *@each then @snapshot = {} end end |