Class: Ingenico::Connect::SDK::Logging::PropertyObfuscator::Builder

Inherits:
Obfuscator::Builder show all
Defined in:
lib/ingenico/connect/sdk/logging/logging_util.rb

Instance Attribute Summary

Attributes inherited from Obfuscator::Builder

#obfuscators

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



228
229
230
231
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 228

def initialize
  # implement the class
  @obfuscators = {}
end

Instance Method Details

#buildObject



253
254
255
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 253

def build
  PropertyObfuscator.new(obfuscators)
end

#with_all(property) ⇒ Object

Raises:

  • (ArgumentError)


233
234
235
236
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 233

def with_all(property)
  raise ArgumentError unless property.is_a? String
  super(property)
end

#with_fixed_length(property, fixedLength) ⇒ Object

Raises:

  • (ArgumentError)


238
239
240
241
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 238

def with_fixed_length(property, fixedLength)
  raise ArgumentError unless property.is_a? String
  super(property, fixedLength)
end

#with_keep_end_count(property, count) ⇒ Object

Raises:

  • (ArgumentError)


248
249
250
251
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 248

def with_keep_end_count(property, count)
  raise ArgumentError unless property.is_a? String
  super(property, count)
end

#with_keep_start_count(key, count) ⇒ Object

Raises:

  • (ArgumentError)


243
244
245
246
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 243

def with_keep_start_count(key, count)
  raise ArgumentError unless key.is_a? String
  super(key, count)
end