Class: FluentExt::TextParser::LabeledTSVParser

Inherits:
GenericParser show all
Defined in:
lib/fluent/plugin/fixed_parser.rb

Instance Method Summary collapse

Methods inherited from GenericParser

#parse_time

Instance Method Details

#call(text) ⇒ Object



98
99
100
101
# File 'lib/fluent/plugin/fixed_parser.rb', line 98

def call(text)
  record = Hash[text.split("\t").map{|p| p.split(":", 2)}]
  parse_time(record)
end