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.
475 |
# File 'sig/types.rbs', line 475
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.
468 469 470 |
# File 'sig/types.rbs', line 468 def categories @categories end |
#custom_patterns ⇒ Array[RedactionPattern]?
Returns the value of attribute custom_patterns.
473 474 475 |
# File 'sig/types.rbs', line 473 def custom_patterns @custom_patterns end |
#custom_terms ⇒ Array[RedactionTerm]?
Returns the value of attribute custom_terms.
472 473 474 |
# File 'sig/types.rbs', line 472 def custom_terms @custom_terms end |
#ner ⇒ NerConfig?
Returns the value of attribute ner.
470 471 472 |
# File 'sig/types.rbs', line 470 def ner @ner end |
#preserve_offsets ⇒ Boolean?
Returns the value of attribute preserve_offsets.
471 472 473 |
# File 'sig/types.rbs', line 471 def preserve_offsets @preserve_offsets end |
#strategy ⇒ RedactionStrategy?
Returns the value of attribute strategy.
469 470 471 |
# File 'sig/types.rbs', line 469 def strategy @strategy end |
Class Method Details
.default ⇒ RedactionConfig
477 |
# File 'sig/types.rbs', line 477
def self.default: () -> RedactionConfig
|
Instance Method Details
#validate ⇒ void
This method returns an undefined value.
476 |
# File 'sig/types.rbs', line 476
def validate: () -> void
|