Sha256: adef321d07d41951a1a8f8cedbbd26a9bec4259f70db479818690eb769037d36

Contents?: true

Size: 995 Bytes

Versions: 16

Compression:

Stored size: 995 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 Agent
    module Reporting
      module Settings
        # The sanitizers defined by the user for use by the agent on this server for this organization.
        class Sanitizer
          ATTRIBUTES = %i[uuid api tags rules].cs__freeze

          # @return uuid [String]
          attr_accessor :uuid
          # @return api [String]
          attr_accessor :api
          # @return uuid [Array<String>]
          attr_accessor :tags
          # @return uuid [Array<String>]
          attr_accessor :rules

          def initialize
            @tags = []
            @rules = []
          end

          def to_controlled_hash
            {
                api: api,
                rules: rules,
                tags: tags,
                uuid: uuid
            }
          end
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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