Class: Xberg::RedactionConfig
- Inherits:
-
Object
- Object
- Xberg::RedactionConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#categories ⇒ Array[PiiCategory]
readonly
Returns the value of attribute categories.
-
#custom_patterns ⇒ Array[RedactionPattern]
readonly
Returns the value of attribute custom_patterns.
-
#custom_terms ⇒ Array[RedactionTerm]
readonly
Returns the value of attribute custom_terms.
-
#ner ⇒ NerConfig?
readonly
Returns the value of attribute ner.
-
#preserve_offsets ⇒ Boolean
readonly
Returns the value of attribute preserve_offsets.
-
#strategy ⇒ enum_RedactionStrategy
readonly
Returns the value of attribute strategy.
Instance Method Summary collapse
-
#initialize ⇒ RedactionConfig
constructor
A new instance of RedactionConfig.
- #validate ⇒ void
Constructor Details
#initialize ⇒ RedactionConfig
Returns a new instance of RedactionConfig.
2251 |
# File 'sig/types.rbs', line 2251
def initialize: (?categories: Array[PiiCategory], ?strategy: enum_RedactionStrategy, ?ner: NerConfig, ?preserve_offsets: bool, ?custom_terms: Array[RedactionTerm], ?custom_patterns: Array[RedactionPattern]) -> void
|
Instance Attribute Details
#categories ⇒ Array[PiiCategory] (readonly)
Returns the value of attribute categories.
2244 2245 2246 |
# File 'sig/types.rbs', line 2244 def categories @categories end |
#custom_patterns ⇒ Array[RedactionPattern] (readonly)
Returns the value of attribute custom_patterns.
2249 2250 2251 |
# File 'sig/types.rbs', line 2249 def custom_patterns @custom_patterns end |
#custom_terms ⇒ Array[RedactionTerm] (readonly)
Returns the value of attribute custom_terms.
2248 2249 2250 |
# File 'sig/types.rbs', line 2248 def custom_terms @custom_terms end |
#ner ⇒ NerConfig? (readonly)
Returns the value of attribute ner.
2246 2247 2248 |
# File 'sig/types.rbs', line 2246 def ner @ner end |
#preserve_offsets ⇒ Boolean (readonly)
Returns the value of attribute preserve_offsets.
2247 2248 2249 |
# File 'sig/types.rbs', line 2247 def preserve_offsets @preserve_offsets end |
#strategy ⇒ enum_RedactionStrategy (readonly)
Returns the value of attribute strategy.
2245 2246 2247 |
# File 'sig/types.rbs', line 2245 def strategy @strategy end |
Instance Method Details
#validate ⇒ void
This method returns an undefined value.
2252 |
# File 'sig/types.rbs', line 2252
def validate: () -> void
|