Class: Ingenico::Connect::SDK::Logging::Obfuscator::Builder Deprecated
- Inherits:
-
Object
- Object
- Ingenico::Connect::SDK::Logging::Obfuscator::Builder
- Defined in:
- lib/ingenico/connect/sdk/logging/logging_util.rb
Overview
Deprecated.
This class shouldn’t have been exposed
A convenient wrapper to build obfuscators
Direct Known Subclasses
Instance Attribute Summary collapse
-
#obfuscators ⇒ Object
Returns the value of attribute obfuscators.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
- #with_all(key) ⇒ Object
- #with_fixed_length(key, fixed_length) ⇒ Object
- #with_keep_end_count(key, count) ⇒ Object
- #with_keep_start_count(key, count) ⇒ Object
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
132 133 134 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 132 def initialize raise NotImplementedError.new("#{self.class.name} is not implemented.") end |
Instance Attribute Details
#obfuscators ⇒ Object
Returns the value of attribute obfuscators.
130 131 132 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 130 def obfuscators @obfuscators end |
Instance Method Details
#build ⇒ Object
156 157 158 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 156 def build raise NotImplementedError.new("#{self.class.name}#build() is not implemented.") end |
#with_all(key) ⇒ Object
136 137 138 139 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 136 def with_all(key) @obfuscators[key] = ValueObfuscator.ALL self end |
#with_fixed_length(key, fixed_length) ⇒ Object
141 142 143 144 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 141 def with_fixed_length(key, fixed_length) @obfuscators[key] = ValueObfuscator.fixed_length(fixed_length) self end |
#with_keep_end_count(key, count) ⇒ Object
151 152 153 154 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 151 def with_keep_end_count(key, count) @obfuscators[key] = ValueObfuscator.keep_end_count(count) self end |
#with_keep_start_count(key, count) ⇒ Object
146 147 148 149 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 146 def with_keep_start_count(key, count) @obfuscators[key] = ValueObfuscator.keep_start_count(count) self end |