Class: LinkChecker::ResultError

Inherits:
Result
  • Object
show all
Defined in:
lib/ruby-link-checker/result.rb

Instance Attribute Summary collapse

Attributes inherited from Result

#checker, #method, #options, #result_uri, #uri

Instance Method Summary collapse

Methods inherited from Result

#failure?, #redirect?, #redirect_to, #request_headers, #success?, #to_s

Constructor Details

#initialize(uri, method, original_uri, error, options = {}) ⇒ ResultError

Returns a new instance of ResultError.



61
62
63
64
# File 'lib/ruby-link-checker/result.rb', line 61

def initialize(uri, method, original_uri, error, options = {})
  @error = error
  super uri, method, original_uri, options
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



59
60
61
# File 'lib/ruby-link-checker/result.rb', line 59

def error
  @error
end

Instance Method Details

#codeObject



70
71
72
# File 'lib/ruby-link-checker/result.rb', line 70

def code
  error.class.name
end

#error?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/ruby-link-checker/result.rb', line 66

def error?
  true
end