Class: Contrast::Agent::Reporting::Settings::SensitiveDataMaskingRule
- 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
-
#keywords ⇒ Object
Array of keywords to mask values for the rule_id.
-
#keywords=(words_array) ⇒ Object
Set keywords array.
-
#rule_id ⇒ Object
Id for this rule.
-
#rule_id=(id) ⇒ Object
Set the rule name.
- #to_controlled_hash ⇒ Object
Instance Method Details
#keywords ⇒ Object
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.
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_id ⇒ Object
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.
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_hash ⇒ Object
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 |