Class: AChecker::CheckResult
- Inherits:
-
Object
- Object
- AChecker::CheckResult
- Defined in:
- lib/achecker/check_result.rb
Instance Attribute Summary collapse
-
#achecker_url ⇒ Object
readonly
Returns the value of attribute achecker_url.
-
#num_errors ⇒ Object
readonly
Returns the value of attribute num_errors.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #has_errors ⇒ Object
-
#initialize(url, achecker_url, num_errors) ⇒ CheckResult
constructor
A new instance of CheckResult.
Constructor Details
#initialize(url, achecker_url, num_errors) ⇒ CheckResult
Returns a new instance of CheckResult.
7 8 9 10 11 |
# File 'lib/achecker/check_result.rb', line 7 def initialize(url, achecker_url, num_errors) @url = url @achecker_url = achecker_url @num_errors = num_errors end |
Instance Attribute Details
#achecker_url ⇒ Object (readonly)
Returns the value of attribute achecker_url.
5 6 7 |
# File 'lib/achecker/check_result.rb', line 5 def achecker_url @achecker_url end |
#num_errors ⇒ Object (readonly)
Returns the value of attribute num_errors.
5 6 7 |
# File 'lib/achecker/check_result.rb', line 5 def num_errors @num_errors end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/achecker/check_result.rb', line 5 def url @url end |
Instance Method Details
#has_errors ⇒ Object
13 14 15 |
# File 'lib/achecker/check_result.rb', line 13 def has_errors @num_errors > 0 end |