Class: Ingenico::Direct::SDK::Logging::HeaderObfuscator::Builder

Inherits:
Obfuscator::Builder show all
Defined in:
lib/ingenico/direct/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.



132
133
134
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 132

def initialize
  @obfuscators = {}
end

Instance Method Details

#buildObject



146
147
148
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 146

def build
  HeaderObfuscator.new(obfuscators)
end

#with_field(name) ⇒ Object

Raises:

  • (ArgumentError)


136
137
138
139
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 136

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

#with_sensitive_field(name) ⇒ Object

Raises:

  • (ArgumentError)


141
142
143
144
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 141

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