Class: OnlinePayments::SDK::Logging::PropertyObfuscator::Builder

Inherits:
Obfuscator::Builder show all
Defined in:
lib/onlinepayments/sdk/logging/logging_util.rb

Instance Attribute Summary

Attributes inherited from Obfuscator::Builder

#obfuscators

Instance Method Summary collapse

Constructor Details

#initializeBuilder

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

#buildObject



227
228
229
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 227

def build
  PropertyObfuscator.new(obfuscators)
end

#with_field(property) ⇒ Object

Raises:

  • (ArgumentError)


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

Raises:

  • (ArgumentError)


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