Class: Ingenico::Direct::SDK::Logging::HeaderObfuscator::Builder
- Inherits:
-
Obfuscator::Builder
- Object
- Obfuscator::Builder
- Ingenico::Direct::SDK::Logging::HeaderObfuscator::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(name) ⇒ Object
- #with_sensitive_field(name) ⇒ Object
Constructor Details
#initialize ⇒ Builder
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
#build ⇒ Object
146 147 148 |
# File 'lib/ingenico/direct/sdk/logging/logging_util.rb', line 146 def build HeaderObfuscator.new(obfuscators) end |
#with_field(name) ⇒ Object
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
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 |