Class: RightAws::RightErrorResponseParser

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

Overview


PARSERS: Errors

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:



435
436
437
# File 'lib/awsbase/right_awsbase.rb', line 435

def errors
  @errors
end

#requestIDObject

Returns the value of attribute requestID.



436
437
438
# File 'lib/awsbase/right_awsbase.rb', line 436

def requestID
  @requestID
end

Instance Method Details

#resetObject



445
446
447
# File 'lib/awsbase/right_awsbase.rb', line 445

def reset
  @errors = []
end

#tagend(name) ⇒ Object



437
438
439
440
441
442
443
444
# File 'lib/awsbase/right_awsbase.rb', line 437

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