Class: Aws::ErrorResponseParser

Inherits:
AwsParser show all
Defined in:
lib/awsbase/awsbase.rb

Overview

<Error>

<Code>TemporaryRedirect</Code>
<Message>Please re-send this request to the specified temporary endpoint. Continue to use the original request endpoint for future requests.</Message>
<RequestId>FD8D5026D1C5ABA3</RequestId>
<Endpoint>bucket-for-k.s3-external-3.amazonaws.com</Endpoint>
<HostId>ItJy8xPFPli1fq/JR3DzQd3iDvFCRqi1LTRmunEdM1Uf6ZtW2r2kfGPWhRE1vtaU</HostId>
<Bucket>bucket-for-k</Bucket>

</Error>

Constant Summary

Constants inherited from AwsParser

AwsParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary collapse

Attributes inherited from AwsParser

#result, #xml_lib, #xmlpath

Instance Method Summary collapse

Methods inherited from AwsParser

#initialize, #method_missing, #parse, #tag_end, #tag_start, #tagstart, #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 Attribute Details

#errorsObject

:nodoc:



743
744
745
# File 'lib/awsbase/awsbase.rb', line 743

def errors
  @errors
end

#requestIDObject

Returns the value of attribute requestID.



744
745
746
# File 'lib/awsbase/awsbase.rb', line 744

def requestID
  @requestID
end

Instance Method Details

#resetObject



757
758
759
# File 'lib/awsbase/awsbase.rb', line 757

def reset
  @errors = []
end

#tagend(name) ⇒ Object

attr_accessor :endpoint, :host_id, :bucket



746
747
748
749
750
751
752
753
754
755
756
# File 'lib/awsbase/awsbase.rb', line 746

def tagend(name)
  case name
  when 'RequestID' ; @requestID = @text
  when 'Code'      ; @code      = @text
  when 'Message'   ; @message   = @text
    #       when 'Endpoint'  ; @endpoint  = @text
    #       when 'HostId'    ; @host_id   = @text
    #       when 'Bucket'    ; @bucket    = @text
  when 'Error'     ; @errors   << [ @code, @message ]
  end
end