Class: Healthcheck::Response::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/healthcheck/response/base.rb

Direct Known Subclasses

Error, Success

Instance Method Summary collapse

Constructor Details

#initialize(controller, checker) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
# File 'lib/healthcheck/response/base.rb', line 6

def initialize(controller, checker)
  @controller = controller
  @checker = checker
  @configuration = Healthcheck.configuration
end

Instance Method Details

#execute!Object



12
13
14
# File 'lib/healthcheck/response/base.rb', line 12

def execute!
  verbose? ? @controller.render(verbose) : @controller.head(status)
end