Class: LinkChecker::ResultError
- Defined in:
- lib/ruby-link-checker/result.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
Attributes inherited from Result
#checker, #method, #options, #result_uri, #uri
Instance Method Summary collapse
- #code ⇒ Object
- #error? ⇒ Boolean
-
#initialize(uri, method, original_uri, error, options = {}) ⇒ ResultError
constructor
A new instance of ResultError.
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, = {}) @error = error super uri, method, original_uri, end |
Instance Attribute Details
#error ⇒ Object
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
#code ⇒ Object
70 71 72 |
# File 'lib/ruby-link-checker/result.rb', line 70 def code error.class.name end |
#error? ⇒ Boolean
66 67 68 |
# File 'lib/ruby-link-checker/result.rb', line 66 def error? true end |