Class: AChecker::CheckResult

Inherits:
Object
  • Object
show all
Defined in:
lib/achecker/check_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (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_errorsObject (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

#urlObject (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_errorsObject



13
14
15
# File 'lib/achecker/check_result.rb', line 13

def has_errors
  @num_errors > 0
end