Class: Aws::RightErrorResponseParser

Inherits:
AwsParser
  • Object
show all
Defined in:
lib/awsbase/parsers.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, #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:



184
185
186
# File 'lib/awsbase/parsers.rb', line 184

def errors
  @errors
end

#requestIDObject

Returns the value of attribute requestID.



185
186
187
# File 'lib/awsbase/parsers.rb', line 185

def requestID
  @requestID
end

Instance Method Details

#parse(response) ⇒ Object

attr_accessor :endpoint, :host_id, :bucket



187
188
189
# File 'lib/awsbase/parsers.rb', line 187

def parse(response)
  super
end

#resetObject



207
208
209
# File 'lib/awsbase/parsers.rb', line 207

def reset
  @errors = []
end

#tagend(name) ⇒ Object



191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/awsbase/parsers.rb', line 191

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