Sha256: 4153c5280390072ae61178ef7378039d010882039a77e2e183f9f5a65ad4a701

Contents?: true

Size: 739 Bytes

Versions: 6

Compression:

Stored size: 739 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/details/protect_rule_details'

module Contrast
  module Agent
    module Reporting
      module Details
        # 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
end

Version data entries

6 entries across 6 versions & 1 rubygems

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