Class: Appsignal::ParamsSanitizer

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/params_sanitizer.rb

Class Method Summary collapse

Class Method Details

.sanitize(params) ⇒ Object


4
5
6
# File 'lib/appsignal/params_sanitizer.rb', line 4

def sanitize(params)
  ParamsSanitizerCopy.sanitize_value(params)
end

.sanitize!(params) ⇒ Object


8
9
10
# File 'lib/appsignal/params_sanitizer.rb', line 8

def sanitize!(params)
  ParamsSanitizerDestructive.sanitize_value(params)
end

.scrub(params) ⇒ Object


12
13
14
# File 'lib/appsignal/params_sanitizer.rb', line 12

def scrub(params)
  ParamsSanitizerCopyScrub.sanitize_value(params)
end

.scrub!(params) ⇒ Object


16
17
18
# File 'lib/appsignal/params_sanitizer.rb', line 16

def scrub!(params)
  ParamsSanitizerDestructiveScrub.sanitize_value(params)
end