Class: DeepHealthCheck::DependencyHealthCheck
- Inherits:
-
HealthCheck
- Object
- HealthCheck
- DeepHealthCheck::DependencyHealthCheck
- Defined in:
- lib/deep_health_check/dependency_health_check.rb
Direct Known Subclasses
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ DependencyHealthCheck
constructor
A new instance of DependencyHealthCheck.
Constructor Details
#initialize ⇒ DependencyHealthCheck
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
#call ⇒ Object
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 |