Class: Ingenico::Connect::SDK::Logging::HeaderObfuscator::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

Methods inherited from Obfuscator::Builder

#with_keep_end_count, #with_keep_start_count

Constructor Details

#initializeBuilder



165
166
167
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 165

def initialize
  @obfuscators = {}
end

Instance Method Details

#buildObject



179
180
181
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 179

def build
  HeaderObfuscator.new(obfuscators)
end

#with_all(name) ⇒ Object

Raises:

  • (ArgumentError)


169
170
171
172
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 169

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

#with_fixed_length(name, fixed_length) ⇒ Object

Raises:

  • (ArgumentError)


174
175
176
177
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 174

def with_fixed_length(name, fixed_length)
  raise ArgumentError unless name.is_a? String
  super(name, fixed_length)
end