Class: HealthChecks
- Inherits:
-
Object
- Object
- HealthChecks
- Includes:
- Singleton
- Defined in:
- lib/liquid/health_checks.rb
Instance Attribute Summary collapse
-
#registry ⇒ Object
readonly
Returns the value of attribute registry.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ HealthChecks
constructor
A new instance of HealthChecks.
Constructor Details
#initialize ⇒ HealthChecks
Returns a new instance of HealthChecks.
10 11 12 |
# File 'lib/liquid/health_checks.rb', line 10 def initialize @registry = HealthCheckRegistry.new end |
Instance Attribute Details
#registry ⇒ Object (readonly)
Returns the value of attribute registry.
8 9 10 |
# File 'lib/liquid/health_checks.rb', line 8 def registry @registry end |
Class Method Details
.register(name, handler) ⇒ Object
18 19 20 |
# File 'lib/liquid/health_checks.rb', line 18 def self.register(name, handler) registry.register(name, handler) end |
.registry ⇒ Object
14 15 16 |
# File 'lib/liquid/health_checks.rb', line 14 def self.registry instance.registry end |
.run ⇒ Object
22 23 24 |
# File 'lib/liquid/health_checks.rb', line 22 def self.run registry.run_health_checks end |