Class: Dryad::Consul::TTLHealthCheck
- Inherits:
-
HealthCheck
- Object
- HealthCheck
- Dryad::Consul::TTLHealthCheck
- Defined in:
- lib/dryad/consul/health_check.rb
Instance Attribute Summary collapse
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Attributes inherited from HealthCheck
#deregister_critical_service_after
Instance Method Summary collapse
-
#initialize(ttl, deregister_critical_service_after) ⇒ TTLHealthCheck
constructor
A new instance of TTLHealthCheck.
Methods inherited from HealthCheck
Constructor Details
#initialize(ttl, deregister_critical_service_after) ⇒ TTLHealthCheck
Returns a new instance of TTLHealthCheck.
21 22 23 24 |
# File 'lib/dryad/consul/health_check.rb', line 21 def initialize(ttl, deregister_critical_service_after) super(deregister_critical_service_after) @ttl = "#{ttl}s" end |
Instance Attribute Details
#ttl ⇒ Object
Returns the value of attribute ttl.
19 20 21 |
# File 'lib/dryad/consul/health_check.rb', line 19 def ttl @ttl end |