Class: OnlinePayments::SDK::Logging::HeaderObfuscator::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.



143
144
145
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 143

def initialize
  @obfuscators = {}
end

Instance Method Details

#buildObject



157
158
159
# File 'lib/onlinepayments/sdk/logging/logging_util.rb', line 157

def build
  HeaderObfuscator.new(obfuscators)
end

#with_field(name) ⇒ Object

Raises:

  • (ArgumentError)


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

Raises:

  • (ArgumentError)


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