Class: Whoosh::App::HealthCheckBuilder
- Inherits:
-
Object
- Object
- Whoosh::App::HealthCheckBuilder
- Defined in:
- lib/whoosh/app.rb
Instance Attribute Summary collapse
-
#probes ⇒ Object
readonly
Returns the value of attribute probes.
Instance Method Summary collapse
-
#initialize ⇒ HealthCheckBuilder
constructor
A new instance of HealthCheckBuilder.
- #probe(name, &block) ⇒ Object
Constructor Details
#initialize ⇒ HealthCheckBuilder
Returns a new instance of HealthCheckBuilder.
764 765 766 |
# File 'lib/whoosh/app.rb', line 764 def initialize @probes = {} end |
Instance Attribute Details
#probes ⇒ Object (readonly)
Returns the value of attribute probes.
763 764 765 |
# File 'lib/whoosh/app.rb', line 763 def probes @probes end |
Instance Method Details
#probe(name, &block) ⇒ Object
767 768 769 |
# File 'lib/whoosh/app.rb', line 767 def probe(name, &block) @probes[name] = block end |