Class: RightAws::Ec2::QEc2BundleInstanceParser
- Inherits:
-
RightAWSParser
- Object
- RightAWSParser
- RightAws::Ec2::QEc2BundleInstanceParser
- Defined in:
- lib/ec2/right_ec2.rb
Overview
:nodoc:
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, #tagstart, #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
1559 1560 1561 |
# File 'lib/ec2/right_ec2.rb', line 1559 def reset @result = {} end |
#tagend(name) ⇒ Object
1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 |
# File 'lib/ec2/right_ec2.rb', line 1544 def tagend(name) case name # when 'requestId' then @result[:request_id] = @text when 'instanceId' then @result[:aws_instance_id] = @text when 'bundleId' then @result[:aws_id] = @text when 'bucket' then @result[:s3_bucket] = @text when 'prefix' then @result[:s3_prefix] = @text when 'startTime' then @result[:aws_start_time] = @text when 'updateTime' then @result[:aws_update_time] = @text when 'state' then @result[:aws_state] = @text when 'progress' then @result[:aws_progress] = @text when 'code' then @result[:aws_error_code] = @text when 'message' then @result[:aws_error_message] = @text end end |