Exception: OpenURI::HTTPRedirect

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/open-uri.rb

Overview

Raised on redirection, only occurs when redirect option for HTTP is false.

Instance Attribute Summary collapse

Attributes inherited from HTTPError

#io

Instance Method Summary collapse

Constructor Details

#initialize(message, io, uri) ⇒ HTTPRedirect

Returns a new instance of HTTPRedirect.



379
380
381
382
# File 'lib/open-uri.rb', line 379

def initialize(message, io, uri)
  super(message, io)
  @uri = uri
end

Instance Attribute Details

#uriObject (readonly)

Returns the value of attribute uri.



383
384
385
# File 'lib/open-uri.rb', line 383

def uri
  @uri
end