Class: OnlinePayments::SDK::Logging::HeaderObfuscator::Builder
- Inherits:
-
Obfuscator::Builder
- Object
- Obfuscator::Builder
- OnlinePayments::SDK::Logging::HeaderObfuscator::Builder
- Defined in:
- lib/onlinepayments/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.
143 144 145 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 143 def initialize @obfuscators = {} end |
Instance Method Details
#build ⇒ Object
157 158 159 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 157 def build HeaderObfuscator.new(obfuscators) end |
#with_field(name) ⇒ Object
147 148 149 150 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 147 def with_field(name) raise ArgumentError unless name.is_a? String super(name) end |
#with_sensitive_field(name) ⇒ Object
152 153 154 155 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 152 def with_sensitive_field(name) raise ArgumentError unless name.is_a? String super(name) end |