Class: Aws::RightErrorResponseParser
- 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 AwsParser
AwsParser::DEFAULT_XML_LIBRARY
Instance Attribute Summary collapse
-
#errors ⇒ Object
:nodoc:.
-
#requestID ⇒ Object
Returns the value of attribute requestID.
Attributes inherited from AwsParser
Instance Method Summary collapse
- #reset ⇒ Object
-
#tagend(name) ⇒ Object
attr_accessor :endpoint, :host_id, :bucket.
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
#errors ⇒ Object
:nodoc:
1004 1005 1006 |
# File 'lib/awsbase/right_awsbase.rb', line 1004 def errors @errors end |
#requestID ⇒ Object
Returns the value of attribute requestID.
1005 1006 1007 |
# File 'lib/awsbase/right_awsbase.rb', line 1005 def requestID @requestID end |
Instance Method Details
#reset ⇒ Object
1023 1024 1025 |
# File 'lib/awsbase/right_awsbase.rb', line 1023 def reset @errors = [] end |
#tagend(name) ⇒ Object
attr_accessor :endpoint, :host_id, :bucket
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 |
# File 'lib/awsbase/right_awsbase.rb', line 1007 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 |