Class: Hanami::Logger::Filter Private
- Inherits:
-
Object
- Object
- Hanami::Logger::Filter
- Defined in:
- lib/hanami/logger/filter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Filtering logic
Constant Summary collapse
- FILTERED_VALUE =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
"[FILTERED]"
Instance Method Summary collapse
- #call(params) ⇒ Object private
-
#initialize(filters = [], mask: FILTERED_VALUE) ⇒ Filter
constructor
private
A new instance of Filter.
Constructor Details
#initialize(filters = [], mask: FILTERED_VALUE) ⇒ Filter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Filter.
16 17 18 19 |
# File 'lib/hanami/logger/filter.rb', line 16 def initialize(filters = [], mask: FILTERED_VALUE) @filters = filters @mask = mask end |
Instance Method Details
#call(params) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/hanami/logger/filter.rb', line 23 def call(params) _filter(_copy_params(params)) end |