Class: Xberg::RedactionConfig
- Inherits:
-
Object
- Object
- Xberg::RedactionConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#categories ⇒ Array[PiiCategory]?
Returns the value of attribute categories.
-
#custom_patterns ⇒ Array[RedactionPattern]?
Returns the value of attribute custom_patterns.
-
#custom_terms ⇒ Array[RedactionTerm]?
Returns the value of attribute custom_terms.
-
#ner ⇒ NerConfig?
Returns the value of attribute ner.
-
#preserve_offsets ⇒ Boolean?
Returns the value of attribute preserve_offsets.
-
#strategy ⇒ RedactionStrategy?
Returns the value of attribute strategy.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ RedactionConfig
constructor
A new instance of RedactionConfig.
- #validate ⇒ void
Constructor Details
#initialize ⇒ RedactionConfig
Returns a new instance of RedactionConfig.
504 |
# File 'sig/types.rbs', line 504
def initialize: (?categories: Array[PiiCategory], ?strategy: RedactionStrategy, ?ner: NerConfig, ?preserve_offsets: bool, ?custom_terms: Array[RedactionTerm], ?custom_patterns: Array[RedactionPattern]) -> void
|
Instance Attribute Details
#categories ⇒ Array[PiiCategory]?
Returns the value of attribute categories.
497 498 499 |
# File 'sig/types.rbs', line 497 def categories @categories end |
#custom_patterns ⇒ Array[RedactionPattern]?
Returns the value of attribute custom_patterns.
502 503 504 |
# File 'sig/types.rbs', line 502 def custom_patterns @custom_patterns end |
#custom_terms ⇒ Array[RedactionTerm]?
Returns the value of attribute custom_terms.
501 502 503 |
# File 'sig/types.rbs', line 501 def custom_terms @custom_terms end |
#ner ⇒ NerConfig?
Returns the value of attribute ner.
499 500 501 |
# File 'sig/types.rbs', line 499 def ner @ner end |
#preserve_offsets ⇒ Boolean?
Returns the value of attribute preserve_offsets.
500 501 502 |
# File 'sig/types.rbs', line 500 def preserve_offsets @preserve_offsets end |
#strategy ⇒ RedactionStrategy?
Returns the value of attribute strategy.
498 499 500 |
# File 'sig/types.rbs', line 498 def strategy @strategy end |
Class Method Details
.default ⇒ RedactionConfig
506 |
# File 'sig/types.rbs', line 506
def self.default: () -> RedactionConfig
|
Instance Method Details
#validate ⇒ void
This method returns an undefined value.
505 |
# File 'sig/types.rbs', line 505
def validate: () -> void
|