Class: Ingenico::Direct::SDK::Logging::PropertyObfuscator::Builder
- Inherits:
-
Obfuscator::Builder
- Object
- Obfuscator::Builder
- Ingenico::Direct::SDK::Logging::PropertyObfuscator::Builder
- Defined in:
- lib/ingenico/direct/sdk/logging/logging_util.rb
Instance Attribute Summary
Attributes inherited from Obfuscator::Builder
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize ⇒ Builder
constructor
A new instance of Builder.
- #with_field(property) ⇒ Object
- #with_sensitive_field(property) ⇒ Object
Constructor Details
#initialize ⇒ Builder
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
#build ⇒ Object
214 215 216 |
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 214 def build PropertyObfuscator.new(obfuscators) end |
#with_field(property) ⇒ Object
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
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 |