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



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)



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

def ip
  @ip
end

#uuidString (readonly)



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