Class: Healthcheck::Response::Base
- Inherits:
-
Object
- Object
- Healthcheck::Response::Base
- Defined in:
- lib/healthcheck/response/base.rb
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(controller, checker) ⇒ Base
constructor
A new instance of Base.
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 |