Class: Contrast::Agent::Reporting::Settings::SensitiveDataMaskingRule

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

Overview

Protect level settings for the sensitive_data_masking_policy Rule entry.

Instance Method Summary collapse

Instance Method Details

#keywordsObject

Array of keywords to mask values for the rule_id.



31
32
33
# File 'lib/contrast/agent/reporting/settings/sensitive_data_masking_rule.rb', line 31

def keywords
  @_keywords ||= []
end

#keywords=(words_array) ⇒ Object

Set keywords array.

Parameters:



39
40
41
# File 'lib/contrast/agent/reporting/settings/sensitive_data_masking_rule.rb', line 39

def keywords= words_array
  @_keywords = words_array if string_array?(words_array)
end

#rule_idObject

Id for this rule.



16
17
18
# File 'lib/contrast/agent/reporting/settings/sensitive_data_masking_rule.rb', line 16

def rule_id
  @_rule_id ||= Contrast::Utils::ObjectShare::EMPTY_STRING
end

#rule_id=(id) ⇒ Object

Set the rule name.

Parameters:

  • id (String)

    Name of parameter to mask.



24
25
26
# File 'lib/contrast/agent/reporting/settings/sensitive_data_masking_rule.rb', line 24

def rule_id= id
  @_rule_id = id.to_s
end

#to_controlled_hashObject



43
44
45
46
47
48
# File 'lib/contrast/agent/reporting/settings/sensitive_data_masking_rule.rb', line 43

def to_controlled_hash
  {
      id: rule_id,
      keywords: keywords
  }
end