Class: Contrast::Agent::Reporting::Settings::IpFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/contrast/agent/reporting/settings/ip_filter.rb

Overview

The IP addresses for which to disable protection.

Constant Summary collapse

ATTRIBUTES =
%i[expires ip name uuid].cs__freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#expiresObject

The value in milliseconds since epoch for expiration. Value of ‘0’ means no expiration.



15
16
17
# File 'lib/contrast/agent/reporting/settings/ip_filter.rb', line 15

def expires
  @expires
end

#ipObject

Returns the value of attribute ip.



17
18
19
# File 'lib/contrast/agent/reporting/settings/ip_filter.rb', line 17

def ip
  @ip
end

#nameObject

Returns the value of attribute name.



19
20
21
# File 'lib/contrast/agent/reporting/settings/ip_filter.rb', line 19

def name
  @name
end

#uuidObject

Returns the value of attribute uuid.



21
22
23
# File 'lib/contrast/agent/reporting/settings/ip_filter.rb', line 21

def uuid
  @uuid
end

Instance Method Details

#to_controlled_hashObject



23
24
25
26
27
28
29
30
# File 'lib/contrast/agent/reporting/settings/ip_filter.rb', line 23

def to_controlled_hash
  {
      expires: expires,
      ip: ip,
      name: name, # rubocop:disable Security/Module/Name
      uuid: uuid
  }
end