Class: GitHubPages::HealthCheck::RedundantCheck
- Inherits:
-
Object
- Object
- GitHubPages::HealthCheck::RedundantCheck
- Extended by:
- Forwardable
- Defined in:
- lib/github-pages-health-check/redundant_check.rb
Constant Summary collapse
- TIMEOUT =
seconds
5
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
Instance Method Summary collapse
- #check ⇒ Object
- #https_eligible? ⇒ Boolean
-
#initialize(domain) ⇒ RedundantCheck
constructor
A new instance of RedundantCheck.
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
#domain ⇒ Object (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
#check ⇒ Object
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
23 24 25 |
# File 'lib/github-pages-health-check/redundant_check.rb', line 23 def https_eligible? checks.any?(&:https_eligible?) end |