Class: Ingenico::Connect::SDK::Logging::HeaderObfuscator::Builder
- Inherits:
-
Obfuscator::Builder
- Object
- Obfuscator::Builder
- Ingenico::Connect::SDK::Logging::HeaderObfuscator::Builder
- Defined in:
- lib/ingenico/connect/sdk/logging/logging_util.rb
Instance Attribute Summary
Attributes inherited from Obfuscator::Builder
Instance Method Summary collapse
-
#build ⇒ Object
with_keep_start_count and with_keep_end_count are the same no need to override.
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
- #with_all(name) ⇒ Object
- #with_fixed_length(name, fixedLength) ⇒ Object
Methods inherited from Obfuscator::Builder
#with_keep_end_count, #with_keep_start_count
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
157 158 159 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 157 def initialize @obfuscators = {} end |
Instance Method Details
#build ⇒ Object
with_keep_start_count and with_keep_end_count are the same no need to override
174 175 176 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 174 def build HeaderObfuscator.new(obfuscators) end |
#with_all(name) ⇒ Object
161 162 163 164 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 161 def with_all(name) raise ArgumentError unless name.is_a? String super(name) end |
#with_fixed_length(name, fixedLength) ⇒ Object
166 167 168 169 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 166 def with_fixed_length(name, fixedLength) raise ArgumentError unless name.is_a? String super(name, fixedLength) end |