Class: Ingenico::Direct::SDK::Logging::PropertyObfuscator::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.



200
201
202
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 200

def initialize
  @obfuscators = {}
end

Instance Method Details

#buildObject



214
215
216
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 214

def build
  PropertyObfuscator.new(obfuscators)
end

#with_field(property) ⇒ Object

Raises:

  • (ArgumentError)


204
205
206
207
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 204

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

#with_sensitive_field(property) ⇒ Object

Raises:

  • (ArgumentError)


209
210
211
212
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 209

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