Class: EventTimeline::ValueFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/event_timeline/value_filter.rb

Constant Summary collapse

FILTERED =
'<FILTERED>'

Class Method Summary collapse

Class Method Details

.filter(key, value, context = {}) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/event_timeline/value_filter.rb', line 8

def filter(key, value, context = {})
  if should_filter?(key, value, context)
    filter_sensitive_value(value, context)
  else
    filter_nested(key, value, context)
  end
end