Class: OnlinePayments::SDK::Logging::PropertyObfuscator::Builder
- Inherits:
-
Obfuscator::Builder
- Object
- Obfuscator::Builder
- OnlinePayments::SDK::Logging::PropertyObfuscator::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(property) ⇒ Object
- #with_sensitive_field(property) ⇒ Object
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
213 214 215 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 213 def initialize @obfuscators = {} end |
Instance Method Details
#build ⇒ Object
227 228 229 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 227 def build PropertyObfuscator.new(obfuscators) end |
#with_field(property) ⇒ Object
217 218 219 220 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 217 def with_field(property) raise ArgumentError unless property.is_a? String super(property) end |
#with_sensitive_field(property) ⇒ Object
222 223 224 225 |
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 222 def with_sensitive_field(property) raise ArgumentError unless property.is_a? String super(property) end |