Class: Ingenico::Direct::SDK::Logging::Obfuscator
- Inherits:
-
Object
- Object
- Ingenico::Direct::SDK::Logging::Obfuscator
- Defined in:
- lib/ingenico/direct/sdk/logging/logging_util.rb
Overview
end of SensitiveValueObfuscator
Direct Known Subclasses
Defined Under Namespace
Instance Method Summary collapse
-
#initialize(obfuscators, case_insensitive) ⇒ Obfuscator
constructor
A new instance of Obfuscator.
- #obfuscate_value(key, value) ⇒ Object
Constructor Details
#initialize(obfuscators, case_insensitive) ⇒ Obfuscator
Returns a new instance of Obfuscator.
50 51 52 53 |
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 50 def initialize(obfuscators, case_insensitive) raise ArgumentError unless obfuscators.is_a? Hash @obfuscators = copy(obfuscators, case_insensitive) end |
Instance Method Details
#obfuscate_value(key, value) ⇒ Object
87 88 89 90 91 92 93 94 |
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 87 def obfuscate_value(key, value) obfuscator = @obfuscators[key] if obfuscator.nil? value else obfuscator.obfuscate_value(value) end end |