Class: LinkChecker::Error

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

Overview

A bad result. The URL is not valid for some reason. Any reason, other than a 200 HTTP response.

representing the error.

Instance Attribute Summary collapse

Attributes inherited from Result

#uri_string

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Error

Returns a new instance of Error.



249
250
251
252
# File 'lib/link_checker.rb', line 249

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

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



248
249
250
# File 'lib/link_checker.rb', line 248

def error
  @error
end