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:



285
286
287
# File 'lib/awsbase/right_awsbase.rb', line 285

def errors
  @errors
end

#requestIDObject

Returns the value of attribute requestID.



286
287
288
# File 'lib/awsbase/right_awsbase.rb', line 286

def requestID
  @requestID
end

Instance Method Details

#resetObject



295
296
297
# File 'lib/awsbase/right_awsbase.rb', line 295

def reset
  @errors = []
end

#tagend(name) ⇒ Object



287
288
289
290
291
292
293
294
# File 'lib/awsbase/right_awsbase.rb', line 287

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