Sha256: d0f3188cae1d86a3fbcf29b2af8ff2e08048901bf77d2931af401ccef57b2def
Contents?: true
Size: 1.55 KB
Versions: 2
Compression:
Stored size: 1.55 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 class InputAnalysis def inputs @_inputs end def inputs= extracted_inputs @_inputs = extracted_inputs end def triggered_rules @_triggered_rules ||= [] end # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contrast-agent-6.11.0 | lib/contrast/agent/reporting/input_analysis/input_analysis.rb |
contrast-agent-6.10.0 | lib/contrast/agent/reporting/input_analysis/input_analysis.rb |