Class: Contrast::Config::Diagnostics::EffectiveConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/contrast/config/diagnostics/effective_config.rb

Overview

The current effective config received from all authorized configuration channels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEffectiveConfig

Returns a new instance of EffectiveConfig.



18
19
20
# File 'lib/contrast/config/diagnostics/effective_config.rb', line 18

def initialize
  @values = []
end

Instance Attribute Details

#valuesArray (readonly)

Value of effective agent configurations

Returns:

  • (Array)


16
17
18
# File 'lib/contrast/config/diagnostics/effective_config.rb', line 16

def values
  @values
end

Instance Method Details

#to_controlled_hashObject



22
23
24
# File 'lib/contrast/config/diagnostics/effective_config.rb', line 22

def to_controlled_hash
  @values&.map(&:to_controlled_hash)
end