Class: FluentExt::TextParser::ValuesParser

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

Direct Known Subclasses

CSVParser, TSVParser

Instance Method Summary collapse

Methods inherited from GenericParser

#parse_time

Instance Method Details

#configure(conf) ⇒ Object



95
96
97
98
# File 'lib/fluent/plugin/fixed_parser.rb', line 95

def configure(conf)
  super
  @keys = @keys.split(",")
end

#values_map(values) ⇒ Object



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

def values_map(values)
  Hash[@keys.zip(values)]
end