Sha256: 4f09e63d39f119e8e0b6b34dc5515be47f51fe153d8c047e38b348381bea4212

Contents?: true

Size: 693 Bytes

Versions: 4

Compression:

Stored size: 693 Bytes

Contents

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

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

module Contrast
  module Agent
    module Reporting
      # Bot blocker IA result details info.
      class BotBlockerDetails < ProtectRuleDetails
        # @return [String]
        attr_accessor :bot
        # User agent header value
        #
        # @return [String]
        attr_accessor :user_agent

        def to_controlled_hash
          {
              bot: bot,
              userAgent: user_agent
          }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
contrast-agent-6.11.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.10.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.9.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.8.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb