class Ingenico::Direct::SDK::Logging::Obfuscator::Builder
A convenient wrapper to build obfuscators
Attributes
obfuscators[RW]
Public Class Methods
new()
click to toggle source
# File lib/ingenico/direct/sdk/logging/logging_util.rb, line 100 def initialize raise NotImplementedError, "#{self.class.name} is not implemented." end
Public Instance Methods
build()
click to toggle source
# File lib/ingenico/direct/sdk/logging/logging_util.rb, line 114 def build raise NotImplementedError, "#{self.class.name}#build() is not implemented." end
with_field(key)
click to toggle source
# File lib/ingenico/direct/sdk/logging/logging_util.rb, line 104 def with_field(key) @obfuscators[key] = ValueObfuscator.INSTANCE self end
with_sensitive_field(key)
click to toggle source
# File lib/ingenico/direct/sdk/logging/logging_util.rb, line 109 def with_sensitive_field(key) @obfuscators[key] = SensitiveValueObfuscator.INSTANCE self end