Sha256: 2cfd941bbdac5c74d11d9d66e1e4559772766c130cd9d497f84e7d47e523ee5b

Contents?: true

Size: 693 Bytes

Versions: 9

Compression:

Stored size: 693 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/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

9 entries across 9 versions & 1 rubygems

Version Path
contrast-agent-7.1.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-7.0.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.15.3 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.15.2 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.15.1 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.15.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.14.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.13.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb
contrast-agent-6.12.0 lib/contrast/agent/reporting/input_analysis/details/bot_blocker_details.rb