Class: RightAws::Ec2::QEc2GetConsoleOutputParser

Inherits:
RightAWSParser show all
Defined in:
lib/ec2/right_ec2.rb

Instance Attribute Summary

Attributes inherited from RightAWSParser

#result, #xml_lib, #xmlpath

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

#resetObject



1072
1073
1074
# File 'lib/ec2/right_ec2.rb', line 1072

def reset
  @result = QEc2GetConsoleOutputResponseType.new
end

#tagend(name) ⇒ Object



1065
1066
1067
1068
1069
1070
1071
# File 'lib/ec2/right_ec2.rb', line 1065

def tagend(name)
  case name
  when 'instanceId' ; @result.instanceId = @text
  when 'timestamp'  ; @result.timestamp  = @text
  when 'output'     ; @result.output     = Base64.decode64 @text
  end
end