mirror of
https://github.com/meineerde/rackstash.git
synced 2025-10-17 14:01:01 +00:00
Fix yard tags in several filters
This commit is contained in:
parent
2e5c39d5d0
commit
c651acb136
@ -29,7 +29,7 @@ module Rackstash
|
||||
# it will be ignored.
|
||||
#
|
||||
# @param event [Hash] an event hash
|
||||
# return [Hash] the given `event` with the fields renamed
|
||||
# @return [Hash] the given `event` with the fields renamed
|
||||
def call(event)
|
||||
@rename.each_pair do |old_key, new_key|
|
||||
next unless event.key?(old_key)
|
||||
|
||||
@ -42,7 +42,7 @@ module Rackstash
|
||||
# Replace or set fields in the event to a new value.
|
||||
#
|
||||
# @param event [Hash] an event hash
|
||||
# return [Hash] the given `event` with the fields renamed
|
||||
# @return [Hash] the given `event` with the fields renamed
|
||||
def call(event)
|
||||
@replace.each_pair do |key, value|
|
||||
value = value.call(event) if value.respond_to?(:call)
|
||||
|
||||
@ -42,7 +42,7 @@ module Rackstash
|
||||
# Update existing field fields in the event with a new value.
|
||||
#
|
||||
# @param event [Hash] an event hash
|
||||
# return [Hash] the given `event` with the fields renamed
|
||||
# @return [Hash] the given `event` with the fields renamed
|
||||
def call(event)
|
||||
@update.each_pair do |key, value|
|
||||
next unless event.key?(key)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user