Class: Contrast::Agent::Reporting::Details::BotBlockerDetails

Inherits:
ProtectRuleDetails show all
Defined in:
lib/contrast/agent/reporting/details/bot_blocker_details.rb

Overview

Bot blocker IA result details info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#botString

Returns:



13
14
15
# File 'lib/contrast/agent/reporting/details/bot_blocker_details.rb', line 13

def bot
  @bot
end

#user_agentString

User agent header value

Returns:



17
18
19
# File 'lib/contrast/agent/reporting/details/bot_blocker_details.rb', line 17

def user_agent
  @user_agent
end

Instance Method Details

#to_controlled_hashObject



19
20
21
22
23
24
# File 'lib/contrast/agent/reporting/details/bot_blocker_details.rb', line 19

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