Sha256: 3ad73e788f8ffe3fc1397c1ae6866e867e6aebd37210b55cde18e0a4affcf39a

Contents?: true

Size: 770 Bytes

Versions: 5

Compression:

Stored size: 770 Bytes

Contents

# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/config/diagnostics/effective_config_value'
require 'contrast/config/diagnostics/tools'
require 'contrast/utils/object_share'

module Contrast
  module Config
    module Diagnostics
      # The current effective config received from all authorized configuration channels.
      class EffectiveConfig
        # Value of effective agent configurations
        #
        # @return [Array]
        attr_reader :values

        def initialize
          @values = []
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
contrast-agent-7.3.2 lib/contrast/config/diagnostics/effective_config.rb
contrast-agent-7.3.1 lib/contrast/config/diagnostics/effective_config.rb
contrast-agent-7.3.0 lib/contrast/config/diagnostics/effective_config.rb
contrast-agent-7.2.0 lib/contrast/config/diagnostics/effective_config.rb
contrast-agent-7.1.0 lib/contrast/config/diagnostics/effective_config.rb