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, fixedLength) ⇒ 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.
228 229 230 231 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 228 def initialize # implement the class @obfuscators = {} end |
Instance Method Details
#build ⇒ Object
253 254 255 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 253 def build PropertyObfuscator.new(obfuscators) end |
#with_all(property) ⇒ Object
233 234 235 236 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 233 def with_all(property) raise ArgumentError unless property.is_a? String super(property) end |
#with_fixed_length(property, fixedLength) ⇒ Object
238 239 240 241 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 238 def with_fixed_length(property, fixedLength) raise ArgumentError unless property.is_a? String super(property, fixedLength) end |
#with_keep_end_count(property, count) ⇒ Object
248 249 250 251 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 248 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
243 244 245 246 |
# File 'lib/ingenico/connect/sdk/logging/logging_util.rb', line 243 def with_keep_start_count(key, count) raise ArgumentError unless key.is_a? String super(key, count) end |