Class: Aws::Ec2::QEc2DescribeBundleTasksParser

Inherits:
AwsParser
  • Object
show all
Defined in:
lib/ec2/ec2.rb

Overview


Instances: Wondows related part

Constant Summary

Constants inherited from AwsParser

AwsParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary

Attributes inherited from AwsParser

#result, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from AwsParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagtext, #text, xml_lib, xml_lib=

Constructor Details

This class inherits a constructor from Aws::AwsParser

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Aws::AwsParser

Instance Method Details

#resetObject



1928
1929
1930
# File 'lib/ec2/ec2.rb', line 1928

def reset
  @result = []
end

#tagend(name) ⇒ Object



1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
# File 'lib/ec2/ec2.rb', line 1900

def tagend(name)
  case name
#        when 'requestId'  then @bundle[:request_id]    = @text
    when 'instanceId' then
      @bundle[:aws_instance_id] = @text
    when 'bundleId' then
      @bundle[:aws_id] = @text
    when 'bucket' then
      @bundle[:s3_bucket] = @text
    when 'prefix' then
      @bundle[:s3_prefix] = @text
    when 'startTime' then
      @bundle[:aws_start_time] = @text
    when 'updateTime' then
      @bundle[:aws_update_time] = @text
    when 'state' then
      @bundle[:aws_state] = @text
    when 'progress' then
      @bundle[:aws_progress] = @text
    when 'code' then
      @bundle[:aws_error_code] = @text
    when 'message' then
      @bundle[:aws_error_message] = @text
    when 'item' then
      @result << @bundle
  end
end

#tagstart(name, attributes) ⇒ Object

:nodoc:



1896
1897
1898
# File 'lib/ec2/ec2.rb', line 1896

def tagstart(name, attributes)
  @bundle = {} if name == 'item'
end