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.
458 |
# File 'sig/types.rbs', line 458
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.
451 452 453 |
# File 'sig/types.rbs', line 451 def categories @categories end |
#custom_patterns ⇒ Array[RedactionPattern]?
Returns the value of attribute custom_patterns.
456 457 458 |
# File 'sig/types.rbs', line 456 def custom_patterns @custom_patterns end |
#custom_terms ⇒ Array[RedactionTerm]?
Returns the value of attribute custom_terms.
455 456 457 |
# File 'sig/types.rbs', line 455 def custom_terms @custom_terms end |
#ner ⇒ NerConfig?
Returns the value of attribute ner.
453 454 455 |
# File 'sig/types.rbs', line 453 def ner @ner end |
#preserve_offsets ⇒ Boolean?
Returns the value of attribute preserve_offsets.
454 455 456 |
# File 'sig/types.rbs', line 454 def preserve_offsets @preserve_offsets end |
#strategy ⇒ RedactionStrategy?
Returns the value of attribute strategy.
452 453 454 |
# File 'sig/types.rbs', line 452 def strategy @strategy end |
Class Method Details
.default ⇒ RedactionConfig
460 |
# File 'sig/types.rbs', line 460
def self.default: () -> RedactionConfig
|
Instance Method Details
#validate ⇒ void
This method returns an undefined value.
459 |
# File 'sig/types.rbs', line 459
def validate: () -> void
|