Class: Whoosh::App::HealthCheckBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/whoosh/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHealthCheckBuilder

Returns a new instance of HealthCheckBuilder.



764
765
766
# File 'lib/whoosh/app.rb', line 764

def initialize
  @probes = {}
end

Instance Attribute Details

#probesObject (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