We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dc27c4 commit e2ecf81Copy full SHA for e2ecf81
lib/http/redirector.rb
@@ -32,12 +32,10 @@ class EndlessRedirectError < TooManyRedirectsError; end
32
# @return [Fixnum]
33
attr_reader :max_hops
34
35
- # @param [#to_h] opts
+ # @param [Hash] opts
36
# @option opts [Boolean] :strict (true) redirector hops policy
37
# @option opts [#to_i] :max_hops (5) maximum allowed amount of hops
38
def initialize(options = {})
39
- options = options.to_h
40
-
41
@strict = options.fetch(:strict, true)
42
@max_hops = options.fetch(:max_hops, 5).to_i
43
end
0 commit comments