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.
126 127 128 129 |
# File 'lib/fluent/plugin/fixed_parser.rb', line 126 def initialize super require 'csv' end |
Instance Method Details
#call(text) ⇒ Object
131 132 133 |
# File 'lib/fluent/plugin/fixed_parser.rb', line 131 def call(text) return parse_time(values_map(CSV.parse_line(text))) end |