1
0
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:
Holger Just 2017-10-10 21:28:25 +02:00
parent 2e5c39d5d0
commit c651acb136
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)