Class: DeepHealthCheck::HealthCheckBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/deep_health_check/health_check_builder.rb

Class Method Summary collapse

Class Method Details

.build(check) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/deep_health_check/health_check_builder.rb', line 5

def self.build(check)
  case check
  when '/health'
    HealthCheck.new
  when '/db_health'
    DBHealthCheck.new
  when '/tcp_dependencies_health'
    TCPDependencyHealthCheck.new
  when '/http_dependencies_health'
    HTTPDependencyHealthCheck.new
  end
end