Class: Healthcheck::Response::Success
- Inherits:
-
Base
- Object
- Base
- Healthcheck::Response::Success
show all
- Defined in:
- lib/healthcheck/response/success.rb
Instance Method Summary
collapse
Methods inherited from Base
#execute!, #initialize
Instance Method Details
#status ⇒ Object
16
17
18
|
# File 'lib/healthcheck/response/success.rb', line 16
def status
@configuration.success
end
|
#verbose ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/healthcheck/response/success.rb', line 6
def verbose
{
status: @configuration.success,
json: {
code: @configuration.success,
status: @configuration.checks.each_with_object({}) { |check, obj| obj[check.name] = 'OK' }
}
}
end
|