Class: ContainersManager::ConsulEntry
- Inherits:
-
Object
- Object
- ContainersManager::ConsulEntry
- Defined in:
- lib/containers_manager/entities/consul_entry.rb
Instance Method Summary collapse
- #deregister_if_possible ⇒ Object
-
#initialize(data, configuration) ⇒ ConsulEntry
constructor
A new instance of ConsulEntry.
- #set_id_provider(id_provider) ⇒ Object
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_possible ⇒ Object
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 |