Class: Chronicle::ETL::StdinExtractor
- Defined in:
- lib/chronicle/etl/extractors/stdin_extractor.rb
Instance Attribute Summary
Attributes included from Registry::SelfRegistering
Instance Method Summary collapse
Methods inherited from Extractor
#initialize, #prepare, #results_count
Methods included from Registry::SelfRegistering
Methods included from Configurable
Constructor Details
This class inherits a constructor from Chronicle::ETL::Extractor
Instance Method Details
#extract ⇒ Object
11 12 13 14 15 16 |
# File 'lib/chronicle/etl/extractors/stdin_extractor.rb', line 11 def extract $stdin.read.each_line do |line| data = { line: line.strip } yield Chronicle::ETL::Extraction.new(data: data) end end |