Class: Ingenico::Connect::SDK::Logging::Obfuscator::Builder Deprecated

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.

Raises:

  • (NotImplementedError)


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

#obfuscatorsObject

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

#buildObject

Raises:

  • (NotImplementedError)


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