Class: Deimos::Status::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/deimos/status/runner.rb

Instance Method Summary collapse

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

#bodyObject



12
13
14
# File 'lib/deimos/status/runner.rb', line 12

def body
  completed_checks.to_json
end

#statusObject



8
9
10
# File 'lib/deimos/status/runner.rb', line 8

def status
  ok? ? :ok : :internal_server_error
end