Sha256: db31ce892b927c3cb2e5cf1aa5134e4272ebafab7f472160000032e9bb9df212

Contents?: true

Size: 1005 Bytes

Versions: 2

Compression:

Stored size: 1005 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_reader :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

2 entries across 2 versions & 1 rubygems

Version Path
contrast-agent-6.8.0 lib/contrast/config/server_configuration.rb
contrast-agent-6.7.0 lib/contrast/config/server_configuration.rb