Class: ValuesRetriever

Inherits:
Object
  • Object
show all
Defined in:
lib/fluent/plugin/values_retriever.rb

Instance Method Summary collapse

Instance Method Details

#retrieve_values(keys, record) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/fluent/plugin/values_retriever.rb', line 3

def retrieve_values(keys, record)
	current_record = record

	keys.each do |key|
		current_record = current_record[key]
	end

	return current_record
end