Class: GitHubPages::HealthCheck::RedundantCheck

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/github-pages-health-check/redundant_check.rb

Constant Summary collapse

TIMEOUT =

seconds

5

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain) ⇒ RedundantCheck

Returns a new instance of RedundantCheck.



12
13
14
# File 'lib/github-pages-health-check/redundant_check.rb', line 12

def initialize(domain)
  @domain = domain
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



10
11
12
# File 'lib/github-pages-health-check/redundant_check.rb', line 10

def domain
  @domain
end

Instance Method Details

#checkObject



16
17
18
# File 'lib/github-pages-health-check/redundant_check.rb', line 16

def check
  @check ||= (checks.find(&:valid?) || check_with_default_nameservers)
end

#https_eligible?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/github-pages-health-check/redundant_check.rb', line 23

def https_eligible?
  checks.any?(&:https_eligible?)
end