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.



743
744
745
# File 'lib/whoosh/app.rb', line 743

def initialize
  @probes = {}
end

Instance Attribute Details

#probesObject (readonly)

Returns the value of attribute probes.



742
743
744
# File 'lib/whoosh/app.rb', line 742

def probes
  @probes
end

Instance Method Details

#probe(name, &block) ⇒ Object



746
747
748
# File 'lib/whoosh/app.rb', line 746

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