Class: Contrast::Agent::Reporting::Settings::Sanitizer

Inherits:
Object
  • Object
show all
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

Validator

Constant Summary collapse

ATTRIBUTES =
%i[uuid api tags rules].cs__freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSanitizer

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

#apiObject

Returns the value of attribute api.



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

def api
  @api
end

#rulesObject

Returns the value of attribute rules.



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

def rules
  @rules
end

#tagsObject

Returns the value of attribute tags.



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

def tags
  @tags
end

#uuidObject

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_hashObject



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: tags,
      uuid: uuid
  }
end