Class: Csvtool::Interface::CLI::Workflows::Support::OutputDestinationMapper
- Inherits:
-
Object
- Object
- Csvtool::Interface::CLI::Workflows::Support::OutputDestinationMapper
- Defined in:
- lib/csvtool/interface/cli/workflows/support/output_destination_mapper.rb
Instance Method Summary collapse
Instance Method Details
#call(output_destination) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/csvtool/interface/cli/workflows/support/output_destination_mapper.rb', line 11 def call(output_destination) if output_destination[:mode] == :file Domain::Shared::OutputDestination.file(path: output_destination[:path]) else Domain::Shared::OutputDestination.console end end |