Sha256: 6b502551251cfa21cfc19ba3a527bb4890d7e160a3bd488fdee075b13f31a0b2

Contents?: true

Size: 1.34 KB

Versions: 18

Compression:

Stored size: 1.34 KB

Contents

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

require 'contrast/utils/object_share'
require 'contrast/agent/reporting/settings/protect_rule'

module Contrast
  module Agent
    module Reporting
      module Settings
        # The settings for each virtual patch condition in the agent.
        class VirtualPatchCondition
          # @return [String]
          attr_reader :name
          # @return [String]
          attr_reader :value
          # @return [String]
          attr_reader :input_type
          # @return [String]
          attr_reader :evaluation

          def initialize hash
            @name = hash[:name]
            @value = hash[:value]
            @input_type = hash[:input_type]
            @evaluation = hash[:evaluation]
          end

          # @return [Array<Contrast::Agent::Reporting::Settings::VirtualPatchCondition>]
          def headers
            @_headers ||= []
          end

          # @return [Array<Contrast::Agent::Reporting::Settings::VirtualPatchCondition>]
          def parameters
            @_parameters ||= []
          end

          # @return [Array<Contrast::Agent::Reporting::Settings::VirtualPatchCondition>]
          def urls
            @_urls ||= []
          end
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contrast-agent-7.6.1 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.6.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.5.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.4.1 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.4.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.3.2 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.3.1 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.3.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.2.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.1.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-7.0.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-6.15.3 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-6.15.2 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-6.15.1 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-6.15.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-6.14.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-6.13.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb
contrast-agent-6.12.0 lib/contrast/agent/reporting/settings/virtual_patch_condition.rb