Sha256: c702c0e28deff5256e5a59336695be9fc93b63f4c66f01bad64c2f6a3875aea1

Contents?: true

Size: 758 Bytes

Versions: 5

Compression:

Stored size: 758 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&.map(&:to_controlled_hash)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
contrast-agent-7.6.1 lib/contrast/config/diagnostics/effective_config.rb
contrast-agent-7.6.0 lib/contrast/config/diagnostics/effective_config.rb
contrast-agent-7.5.0 lib/contrast/config/diagnostics/effective_config.rb
contrast-agent-7.4.1 lib/contrast/config/diagnostics/effective_config.rb
contrast-agent-7.4.0 lib/contrast/config/diagnostics/effective_config.rb