Class: ContainersManager::ConsulEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/containers_manager/entities/consul_entry.rb

Instance Method Summary collapse

Constructor Details

#initialize(data, configuration) ⇒ ConsulEntry

Returns a new instance of ConsulEntry.



3
4
5
6
# File 'lib/containers_manager/entities/consul_entry.rb', line 3

def initialize(data, configuration)
  @data          = data
  @configuration = configuration
end

Instance Method Details

#deregister_if_possibleObject



13
14
15
# File 'lib/containers_manager/entities/consul_entry.rb', line 13

def deregister_if_possible
  deregister if can_deregister?
end

#set_id_provider(id_provider) ⇒ Object



8
9
10
11
# File 'lib/containers_manager/entities/consul_entry.rb', line 8

def set_id_provider(id_provider)
  @id_provider = id_provider
  self
end