Exception: LinkChecker::Errors::RedirectLoopError

Inherits:
BaseError
  • Object
show all
Defined in:
lib/ruby-link-checker/errors/redirect_loop_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(urls) ⇒ RedirectLoopError

Returns a new instance of RedirectLoopError.



8
9
10
11
# File 'lib/ruby-link-checker/errors/redirect_loop_error.rb', line 8

def initialize(urls)
  @urls = urls
  super "Redirect loop: #{urls.join(' -> ')}."
end

Instance Attribute Details

#urlsObject

Returns the value of attribute urls.



6
7
8
# File 'lib/ruby-link-checker/errors/redirect_loop_error.rb', line 6

def urls
  @urls
end

Instance Method Details

#urlObject



13
14
15
# File 'lib/ruby-link-checker/errors/redirect_loop_error.rb', line 13

def url
  @urls.last
end