Class: Dryad::Consul::TTLHealthCheck

Inherits:
HealthCheck show all
Defined in:
lib/dryad/consul/health_check.rb

Instance Attribute Summary collapse

Attributes inherited from HealthCheck

#deregister_critical_service_after

Instance Method Summary collapse

Methods inherited from HealthCheck

#attributes

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

#ttlObject

Returns the value of attribute ttl.



19
20
21
# File 'lib/dryad/consul/health_check.rb', line 19

def ttl
  @ttl
end