Class: Contrast::Agent::Reporting::Settings::Sanitizer
- Defined in:
- lib/contrast/agent/reporting/settings/sanitizer.rb
Overview
The sanitizers defined by the user for use by the agent on this server for this organization.
Direct Known Subclasses
Constant Summary collapse
- ATTRIBUTES =
%i[uuid api tags rules].cs__freeze
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#rules ⇒ Object
Returns the value of attribute rules.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize ⇒ Sanitizer
constructor
A new instance of Sanitizer.
- #to_controlled_hash ⇒ Object
Constructor Details
#initialize ⇒ Sanitizer
Returns a new instance of Sanitizer.
21 22 23 24 |
# File 'lib/contrast/agent/reporting/settings/sanitizer.rb', line 21 def initialize @tags = [] @rules = [] end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
15 16 17 |
# File 'lib/contrast/agent/reporting/settings/sanitizer.rb', line 15 def api @api end |
#rules ⇒ Object
Returns the value of attribute rules.
19 20 21 |
# File 'lib/contrast/agent/reporting/settings/sanitizer.rb', line 19 def rules @rules end |
#tags ⇒ Object
Returns the value of attribute tags.
17 18 19 |
# File 'lib/contrast/agent/reporting/settings/sanitizer.rb', line 17 def @tags end |
#uuid ⇒ Object
Returns the value of attribute uuid.
13 14 15 |
# File 'lib/contrast/agent/reporting/settings/sanitizer.rb', line 13 def uuid @uuid end |
Instance Method Details
#to_controlled_hash ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/contrast/agent/reporting/settings/sanitizer.rb', line 26 def to_controlled_hash { api: api, rules: rules, tags: , uuid: uuid } end |