Class: FluentExt::TextParser::CSVParser
- Inherits:
-
ValuesParser
- Object
- GenericParser
- ValuesParser
- FluentExt::TextParser::CSVParser
- Defined in:
- lib/fluent/plugin/fixed_parser.rb
Instance Method Summary collapse
- #call(text) ⇒ Object
-
#initialize ⇒ CSVParser
constructor
A new instance of CSVParser.
Methods inherited from ValuesParser
Methods inherited from GenericParser
Constructor Details
#initialize ⇒ CSVParser
Returns a new instance of CSVParser.
114 115 116 117 |
# File 'lib/fluent/plugin/fixed_parser.rb', line 114 def initialize super require 'csv' end |
Instance Method Details
#call(text) ⇒ Object
119 120 121 |
# File 'lib/fluent/plugin/fixed_parser.rb', line 119 def call(text) return parse_time(values_map(CSV.parse_line(text))) end |