W3cubDocs

/Ruby 2.4

class OpenURI::HTTPRedirect

Parent:
OpenURI::HTTPError

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

Attributes

uri[R]

Public Class Methods

new(message, io, uri) Show source
Calls superclass method OpenURI::HTTPError.new
# File lib/open-uri.rb, line 377
def initialize(message, io, uri)
  super(message, io)
  @uri = uri
end

Ruby Core © 1993–2017 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.