Sha256: 4ac19bafef1e8d87bd0acf374fbe96e3050144b374d7ff265c4cd8cc0730269e

Contents?: true

Size: 1.38 KB

Versions: 18

Compression:

Stored size: 1.38 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'
require 'contrast/agent/reporting/input_analysis/input_analysis_result'

module Contrast
  module Agent
    module Reporting
      # This class will do ia analysis for our protect rules instead of
      # using the service.
      class InputAnalysis
        # result from input analysis
        #
        # @return @_results [Array<Contrast::Agent::Reporting::Settings::InputAnalysisResult>]
        def results
          @_results ||= []
        end

        # result from input analysis
        #
        # @return @_results [Array<Contrast::Agent::Reporting::Settings::InputAnalysisResult>]
        def results= results
          @_results = results
        end

        # Returns our wrapper around the Rack::Request for this context
        #
        # @return request [Contrast::Agent::Request, nil]
        def request
          @_request ||= nil
        end

        # Sets current request
        #
        # @param request [Contrast::Agent::Request] our wrapper around the Rack::Request for this context
        # @return request [Contrast::Agent::Request, nil]
        def request= request
          @_request = request if request.instance_of?(Contrast::Agent::Request)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
contrast-agent-6.7.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.6.5 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.6.4 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.6.3 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.6.2 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.6.1 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.6.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.5.1 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.5.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.4.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.3.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.2.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.1.2 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.1.1 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.1.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-6.0.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-5.3.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb
contrast-agent-5.2.0 lib/contrast/agent/reporting/input_analysis/input_analysis.rb