Class: Contrast::Agent::Reporting::Details::IpDenylistDetails

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

Overview

Bot blocker IA result details info.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ip, uuid) ⇒ IpDenylistDetails

Returns a new instance of IpDenylistDetails.

Parameters:

  • ip (String)

    the IP address that was blocked

  • uuid (String)

    the UUID to identify the block rule in TeamServer



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

def initialize ip, uuid
  @ip = ip
  @uuid = uuid
  super()
end

Instance Attribute Details

#ipString (readonly)

Returns:



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

def ip
  @ip
end

#uuidString (readonly)

Returns:



15
16
17
# File 'lib/contrast/agent/reporting/details/ip_denylist_details.rb', line 15

def uuid
  @uuid
end

Instance Method Details

#to_controlled_hashObject



25
26
27
28
29
30
# File 'lib/contrast/agent/reporting/details/ip_denylist_details.rb', line 25

def to_controlled_hash
  {
      ip: ip,
      uuid: uuid
  }
end