Exception: OpenURI::HTTPRedirect
- Defined in:
- lib/rubysl/open-uri/open-uri.rb
Overview
Raised on redirection, only occurs when redirect
option for HTTP is false
.
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Attributes inherited from HTTPError
Instance Method Summary collapse
-
#initialize(message, io, uri) ⇒ HTTPRedirect
constructor
A new instance of HTTPRedirect.
Constructor Details
#initialize(message, io, uri) ⇒ HTTPRedirect
Returns a new instance of HTTPRedirect.
368 369 370 371 |
# File 'lib/rubysl/open-uri/open-uri.rb', line 368 def initialize(, io, uri) super(, io) @uri = uri end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
372 373 374 |
# File 'lib/rubysl/open-uri/open-uri.rb', line 372 def uri @uri end |