class Ingenico::Connect::SDK::Logging::Obfuscator::Builder

A convenient wrapper to build obfuscators

Attributes

obfuscators[RW]

Public Class Methods

new() click to toggle source
# File lib/ingenico/connect/sdk/logging/logging_util.rb, line 123
def initialize
  raise NotImplementedError.new("#{self.class.name} is not implemented.")
end

Public Instance Methods

build() click to toggle source
# File lib/ingenico/connect/sdk/logging/logging_util.rb, line 147
def build
  raise NotImplementedError.new("#{self.class.name}#build() is not implemented.")
end
with_all(key) click to toggle source
# File lib/ingenico/connect/sdk/logging/logging_util.rb, line 127
def with_all(key)
  @obfuscators[key] = ValueObfuscator.ALL
  self
end
with_fixed_length(key, fixed_length) click to toggle source
# File lib/ingenico/connect/sdk/logging/logging_util.rb, line 132
def with_fixed_length(key, fixed_length)
  @obfuscators[key] = ValueObfuscator.fixed_length(fixed_length)
  self
end
with_keep_end_count(key, count) click to toggle source
# File lib/ingenico/connect/sdk/logging/logging_util.rb, line 142
def with_keep_end_count(key, count)
  @obfuscators[key] = ValueObfuscator.keep_end_count(count)
  self
end
with_keep_start_count(key, count) click to toggle source
# File lib/ingenico/connect/sdk/logging/logging_util.rb, line 137
def with_keep_start_count(key, count)
  @obfuscators[key] = ValueObfuscator.keep_start_count(count)
  self
end