Method: HTTP::Redirector#initialize
- Defined in:
- lib/http/redirector.rb
#initialize(opts = {}) ⇒ Redirector
Returns a new instance of Redirector.
42 43 44 45 46 |
# File 'lib/http/redirector.rb', line 42 def initialize(opts = {}) @strict = opts.fetch(:strict, true) @max_hops = opts.fetch(:max_hops, 5).to_i @on_redirect = opts.fetch(:on_redirect, nil) end |