Sha256: 5cb01789678f4b854041cea8cfbd80a18c0db7dc337ccb381453e7ce47bb3f6b

Contents?: true

Size: 1.51 KB

Versions: 16

Compression:

Stored size: 1.51 KB

Contents

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

require 'contrast/utils/object_share'

module Contrast
  module Agent
    module Reporting
      # This module will hold all the settings from the TS responce
      module Settings
        # Application level settings for the Assess featureset.
        class Assess
          # Assess rules to disable for this application.
          #
          # @return disabled_rules [Array<String>] Array with string rule_ids
          def disabled_rules
            @_disabled_rules ||= []
          end

          # @param disabled_rules [Array] with AssessRuleID strings
          # @return disabled_rules [Array<AssessRuleID>] Array with string rule_ids
          def disabled_rules= disabled_rules
            @_disabled_rules = disabled_rules if disabled_rules.is_a?(Array)
          end

          # The id of a session on TeamServer under which this session of this application should report
          # Overrides that set by application.session_id (should match if provided).
          #
          # @return session_id [String, nil]
          def session_id
            @_session_id
          end

          # Set the session_id
          #
          # @param session_id [String]
          # @return session_id [String]
          def session_id= session_id
            @_session_id = session_id if session_id.is_a?(String) && !session_id.blank?
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
contrast-agent-6.9.0 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.8.0 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.7.0 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.6.5 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.6.4 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.6.3 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.6.2 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.6.1 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.6.0 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.5.1 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.5.0 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.4.0 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.3.0 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.2.0 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.1.2 lib/contrast/agent/reporting/settings/assess.rb
contrast-agent-6.1.1 lib/contrast/agent/reporting/settings/assess.rb