Class: RightAws::RightErrorResponseParser

Inherits:
RightAWSParser show all
Defined in:
lib/awsbase/right_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 RightAWSParser

RightAws::RightAWSParser::DEFAULT_XML_LIBRARY

Instance Attribute Summary collapse

Attributes inherited from RightAWSParser

#full_tag_name, #result, #tag, #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:



1297
1298
1299
# File 'lib/awsbase/right_awsbase.rb', line 1297

def errors
  @errors
end

#requestIDObject

Returns the value of attribute requestID.



1298
1299
1300
# File 'lib/awsbase/right_awsbase.rb', line 1298

def requestID
  @requestID
end

Instance Method Details

#resetObject



1311
1312
1313
# File 'lib/awsbase/right_awsbase.rb', line 1311

def reset
  @errors = []
end

#tagend(name) ⇒ Object

attr_accessor :endpoint, :host_id, :bucket



1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
# File 'lib/awsbase/right_awsbase.rb', line 1300

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