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.



757
758
759
# File 'lib/whoosh/app.rb', line 757

def initialize
  @probes = {}
end

Instance Attribute Details

#probesObject (readonly)

Returns the value of attribute probes.



756
757
758
# File 'lib/whoosh/app.rb', line 756

def probes
  @probes
end

Instance Method Details

#probe(name, &block) ⇒ Object



760
761
762
# File 'lib/whoosh/app.rb', line 760

def probe(name, &block)
  @probes[name] = block
end