Class: Csvtool::Interface::CLI::Workflows::Builders::RowExtractionSessionBuilder
- Inherits:
-
Object
- Object
- Csvtool::Interface::CLI::Workflows::Builders::RowExtractionSessionBuilder
- Defined in:
- lib/csvtool/interface/cli/workflows/builders/row_extraction_session_builder.rb
Instance Method Summary collapse
Instance Method Details
#call(file_path:, col_sep:, row_range:, destination:) ⇒ Object
12 13 14 15 16 |
# File 'lib/csvtool/interface/cli/workflows/builders/row_extraction_session_builder.rb', line 12 def call(file_path:, col_sep:, row_range:, destination:) source = Domain::RowSession::RowSource.new(path: file_path, separator: col_sep) session = Domain::RowSession::RowSession.start(source: source, row_range: row_range) session.with_output_destination(destination) end |