Class: Contrast::Agent::Reporting::Settings::BotBlocker
- Defined in:
- lib/contrast/agent/reporting/settings/bot_blocker.rb
Overview
Indicate if the bot protection feature set is enabled for this server or not.
Instance Attribute Summary collapse
Instance Method Summary collapse
- #bots ⇒ Object
- #bots=(bots_array) ⇒ Object
-
#initialize ⇒ BotBlocker
constructor
A new instance of BotBlocker.
- #to_controlled_hash ⇒ Object
Constructor Details
#initialize ⇒ BotBlocker
15 16 17 |
# File 'lib/contrast/agent/reporting/settings/bot_blocker.rb', line 15 def initialize @enable = true end |
Instance Attribute Details
#enable ⇒ Boolean
13 14 15 |
# File 'lib/contrast/agent/reporting/settings/bot_blocker.rb', line 13 def enable @enable end |
Instance Method Details
#bots ⇒ Object
20 21 22 |
# File 'lib/contrast/agent/reporting/settings/bot_blocker.rb', line 20 def bots @_bots ||= [] end |