Class: Nous::Crawler::RedirectFollower
- Inherits:
-
Nous::Command
- Object
- Nous::Command
- Nous::Crawler::RedirectFollower
- Defined in:
- lib/nous/crawler/redirect_follower.rb
Defined Under Namespace
Classes: RedirectError
Constant Summary collapse
- MAX_HOPS =
5
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client:, seed_host:, url:, hops_remaining: MAX_HOPS) ⇒ RedirectFollower
constructor
A new instance of RedirectFollower.
Methods inherited from Nous::Command
Constructor Details
#initialize(client:, seed_host:, url:, hops_remaining: MAX_HOPS) ⇒ RedirectFollower
Returns a new instance of RedirectFollower.
10 11 12 13 14 15 |
# File 'lib/nous/crawler/redirect_follower.rb', line 10 def initialize(client:, seed_host:, url:, hops_remaining: MAX_HOPS) @client = client @seed_host = seed_host @url = url @hops_remaining = hops_remaining end |