Class: Csvtool::Domain::CsvSplitSession::SplitOptions
- Inherits:
-
Object
- Object
- Csvtool::Domain::CsvSplitSession::SplitOptions
- Defined in:
- lib/csvtool/domain/csv_split_session/split_options.rb
Instance Attribute Summary collapse
-
#chunk_size ⇒ Object
readonly
Returns the value of attribute chunk_size.
-
#file_prefix ⇒ Object
readonly
Returns the value of attribute file_prefix.
-
#manifest_path ⇒ Object
readonly
Returns the value of attribute manifest_path.
-
#output_directory ⇒ Object
readonly
Returns the value of attribute output_directory.
-
#overwrite_existing ⇒ Object
readonly
Returns the value of attribute overwrite_existing.
-
#write_manifest ⇒ Object
readonly
Returns the value of attribute write_manifest.
Instance Method Summary collapse
-
#initialize(chunk_size:, output_directory: nil, file_prefix: nil, overwrite_existing: false, write_manifest: false, manifest_path: nil) ⇒ SplitOptions
constructor
A new instance of SplitOptions.
Constructor Details
#initialize(chunk_size:, output_directory: nil, file_prefix: nil, overwrite_existing: false, write_manifest: false, manifest_path: nil) ⇒ SplitOptions
Returns a new instance of SplitOptions.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/csvtool/domain/csv_split_session/split_options.rb', line 9 def initialize( chunk_size:, output_directory: nil, file_prefix: nil, overwrite_existing: false, write_manifest: false, manifest_path: nil ) @chunk_size = Integer(chunk_size) @output_directory = output_directory @file_prefix = file_prefix @overwrite_existing = overwrite_existing @write_manifest = write_manifest @manifest_path = manifest_path end |
Instance Attribute Details
#chunk_size ⇒ Object (readonly)
Returns the value of attribute chunk_size.
7 8 9 |
# File 'lib/csvtool/domain/csv_split_session/split_options.rb', line 7 def chunk_size @chunk_size end |
#file_prefix ⇒ Object (readonly)
Returns the value of attribute file_prefix.
7 8 9 |
# File 'lib/csvtool/domain/csv_split_session/split_options.rb', line 7 def file_prefix @file_prefix end |
#manifest_path ⇒ Object (readonly)
Returns the value of attribute manifest_path.
7 8 9 |
# File 'lib/csvtool/domain/csv_split_session/split_options.rb', line 7 def manifest_path @manifest_path end |
#output_directory ⇒ Object (readonly)
Returns the value of attribute output_directory.
7 8 9 |
# File 'lib/csvtool/domain/csv_split_session/split_options.rb', line 7 def output_directory @output_directory end |
#overwrite_existing ⇒ Object (readonly)
Returns the value of attribute overwrite_existing.
7 8 9 |
# File 'lib/csvtool/domain/csv_split_session/split_options.rb', line 7 def overwrite_existing @overwrite_existing end |
#write_manifest ⇒ Object (readonly)
Returns the value of attribute write_manifest.
7 8 9 |
# File 'lib/csvtool/domain/csv_split_session/split_options.rb', line 7 def write_manifest @write_manifest end |