Class: DeepHealthCheck::DependencyHealthCheck

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

Instance Method Summary collapse

Constructor Details

#initializeDependencyHealthCheck

Returns a new instance of DependencyHealthCheck.



5
6
7
8
9
# File 'lib/deep_health_check/dependency_health_check.rb', line 5

def initialize
  @type = 'abstract'
  @dependencies = nil
  raise 'You are trying to instantiate an abstract class!'
end

Instance Method Details

#callObject



11
12
13
14
15
# File 'lib/deep_health_check/dependency_health_check.rb', line 11

def call
  return no_dependencies_response if @dependencies.nil?

  api_health_check 200, @dependencies
end