Class: Contrast::Agent::Reporting::Settings::IpFilter
- 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
-
#expires ⇒ Object
The value in milliseconds since epoch for expiration.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#name ⇒ Object
Returns the value of attribute name.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
Instance Attribute Details
#expires ⇒ Object
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 |
#ip ⇒ Object
Returns the value of attribute ip.
17 18 19 |
# File 'lib/contrast/agent/reporting/settings/ip_filter.rb', line 17 def ip @ip end |
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'lib/contrast/agent/reporting/settings/ip_filter.rb', line 19 def name @name end |
#uuid ⇒ Object
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_hash ⇒ Object
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 |