Class: RightAws::RightErrorResponseParser

Inherits:
RightAWSParser show all
Defined in:
lib/awsbase/right_awsbase.rb

Overview


PARSERS: Errors

Constant Summary

Constants inherited from RightAWSParser

RightAws::RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary collapse

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 Attribute Details

#errorsObject

:nodoc:



520
521
522
# File 'lib/awsbase/right_awsbase.rb', line 520

def errors
  @errors
end

#requestIDObject

Returns the value of attribute requestID.



521
522
523
# File 'lib/awsbase/right_awsbase.rb', line 521

def requestID
  @requestID
end

Instance Method Details

#resetObject



530
531
532
# File 'lib/awsbase/right_awsbase.rb', line 530

def reset
  @errors = []
end

#tagend(name) ⇒ Object



522
523
524
525
526
527
528
529
# File 'lib/awsbase/right_awsbase.rb', line 522

def tagend(name)
  case name
    when 'RequestID' ; @requestID = @text
    when 'Code'      ; @code      = @text
    when 'Message'   ; @message   = @text
    when 'Error'     ; @errors   << [ @code, @message ]
  end
end