Class: Ingenico::Connect::SDK::Logging::PropertyObfuscator::Builder
- Inherits:
-
Obfuscator::Builder
- Object
- Obfuscator::Builder
- Ingenico::Connect::SDK::Logging::PropertyObfuscator::Builder
- Defined in:
- lib/ingenico/connect/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_all(property) ⇒ Object
- #with_fixed_length(property, fixed_length) ⇒ Object
- #with_keep_end_count(property, count) ⇒ Object
- #with_keep_start_count(key, count) ⇒ Object
Constructor Details
#initialize ⇒ Builder
Returns a new instance of Builder.
233 234 235 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 233 def initialize @obfuscators = {} end |
Instance Method Details
#build ⇒ Object
257 258 259 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 257 def build PropertyObfuscator.new(obfuscators) end |
#with_all(property) ⇒ Object
237 238 239 240 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 237 def with_all(property) raise ArgumentError unless property.is_a? String super(property) end |
#with_fixed_length(property, fixed_length) ⇒ Object
242 243 244 245 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 242 def with_fixed_length(property, fixed_length) raise ArgumentError unless property.is_a? String super(property, fixed_length) end |
#with_keep_end_count(property, count) ⇒ Object
252 253 254 255 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 252 def with_keep_end_count(property, count) raise ArgumentError unless property.is_a? String super(property, count) end |
#with_keep_start_count(key, count) ⇒ Object
247 248 249 250 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 247 def with_keep_start_count(key, count) raise ArgumentError unless key.is_a? String super(key, count) end |