Sha256: 85f5b40c35b0563b7d2797bece8e4cd0c5787f989821ab12fccfe9b4d4398ba9

Contents?: true

Size: 780 Bytes

Versions: 14

Compression:

Stored size: 780 Bytes

Contents

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

require 'contrast/agent/reporting/details/protect_rule_details'

module Contrast
  module Agent
    module Reporting
      module Details
        # Matcher data for XSS rule.
        class XssMatch
          # @return [Integer] in ms
          attr_accessor :evidence_start
          # @return [String]
          attr_accessor :evidence
          # @return [Integer]
          attr_accessor :offset

          def to_controlled_hash
            {
                evidenceStart: evidence_start,
                evidence: evidence,
                offset: offset
            }
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
contrast-agent-7.4.0 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-7.3.2 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-7.3.1 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-7.3.0 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-7.2.0 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-7.1.0 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-7.0.0 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-6.15.3 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-6.15.2 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-6.15.1 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-6.15.0 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-6.14.0 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-6.13.0 lib/contrast/agent/reporting/details/xss_match.rb
contrast-agent-6.12.0 lib/contrast/agent/reporting/details/xss_match.rb