Sha256: ceefb5a268c5e51003948e2878df8879716f8031ea5db8101b561f2d4d092ae4

Contents?: true

Size: 1007 Bytes

Versions: 14

Compression:

Stored size: 1007 Bytes

Contents

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

module Contrast
  module Config
    # Common Configuration settings. Those in this section pertain to the server identification functionality of the
    # Agent.
    class ServerConfiguration
      include Contrast::Config::BaseConfiguration

      # @return [String, nil]
      attr_accessor :name
      # @return [String, nil]
      attr_accessor :path
      # @return [String, nil]
      attr_accessor :type
      # @return [Array, nil]
      attr_accessor :tags
      # @return [String, nil]
      attr_accessor :environment
      # @return [String, nil]
      attr_accessor :version

      def initialize hsh = {}
        return unless hsh

        @path = hsh[:path]
        @name = hsh[:name]
        @type = hsh[:type]
        @tags = hsh[:tags]
        @environment = hsh[:environment]
        @version = hsh[:version]
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
contrast-agent-6.6.5 lib/contrast/config/server_configuration.rb
contrast-agent-6.6.4 lib/contrast/config/server_configuration.rb
contrast-agent-6.6.3 lib/contrast/config/server_configuration.rb
contrast-agent-6.6.2 lib/contrast/config/server_configuration.rb
contrast-agent-6.6.1 lib/contrast/config/server_configuration.rb
contrast-agent-6.6.0 lib/contrast/config/server_configuration.rb
contrast-agent-6.5.1 lib/contrast/config/server_configuration.rb
contrast-agent-6.5.0 lib/contrast/config/server_configuration.rb
contrast-agent-6.4.0 lib/contrast/config/server_configuration.rb
contrast-agent-6.3.0 lib/contrast/config/server_configuration.rb
contrast-agent-6.2.0 lib/contrast/config/server_configuration.rb
contrast-agent-6.1.2 lib/contrast/config/server_configuration.rb
contrast-agent-6.1.1 lib/contrast/config/server_configuration.rb
contrast-agent-6.1.0 lib/contrast/config/server_configuration.rb