Class: Deimos::Status::Runner
- Inherits:
-
Object
- Object
- Deimos::Status::Runner
- Defined in:
- lib/deimos/status/runner.rb
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(checks) ⇒ Runner
constructor
A new instance of Runner.
- #status ⇒ Object
Constructor Details
#initialize(checks) ⇒ Runner
Returns a new instance of Runner.
4 5 6 |
# File 'lib/deimos/status/runner.rb', line 4 def initialize(checks) @checks = checks end |
Instance Method Details
#body ⇒ Object
12 13 14 |
# File 'lib/deimos/status/runner.rb', line 12 def body completed_checks.to_json end |
#status ⇒ Object
8 9 10 |
# File 'lib/deimos/status/runner.rb', line 8 def status ok? ? :ok : :internal_server_error end |