Class: LinkChecker::Redirect

Inherits:
Result
  • Object
show all
Defined in:
lib/link_checker.rb

Overview

A redirection to another URL.

Instance Attribute Summary collapse

Attributes inherited from Result

#uri_string

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Redirect

A new LinkChecker::Redirect object.

which is the URL that the original :uri_string redirected to.

Parameters:

  • params (Hash)

    A hash of parameters. Expects :final_destination_uri_string,



235
236
237
238
239
# File 'lib/link_checker.rb', line 235

def initialize(params)
  @final_destination_uri_string = params[:final_destination_uri_string]
  @good = params[:good]
  super(params)
end

Instance Attribute Details

#final_destination_uri_stringObject (readonly)

Returns the value of attribute final_destination_uri_string.



229
230
231
# File 'lib/link_checker.rb', line 229

def final_destination_uri_string
  @final_destination_uri_string
end

#goodObject (readonly)

Returns the value of attribute good.



228
229
230
# File 'lib/link_checker.rb', line 228

def good
  @good
end