Class: Csvtool::Domain::ColumnSession::CsvSource
- Inherits:
-
Object
- Object
- Csvtool::Domain::ColumnSession::CsvSource
- Defined in:
- lib/csvtool/domain/column_session/csv_source.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#separator ⇒ Object
readonly
Returns the value of attribute separator.
Instance Method Summary collapse
-
#initialize(path:, separator:) ⇒ CsvSource
constructor
A new instance of CsvSource.
Constructor Details
#initialize(path:, separator:) ⇒ CsvSource
Returns a new instance of CsvSource.
9 10 11 12 13 14 |
# File 'lib/csvtool/domain/column_session/csv_source.rb', line 9 def initialize(path:, separator:) raise ArgumentError, "path cannot be empty" if path.to_s.empty? @path = path @separator = separator end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/csvtool/domain/column_session/csv_source.rb', line 7 def path @path end |
#separator ⇒ Object (readonly)
Returns the value of attribute separator.
7 8 9 |
# File 'lib/csvtool/domain/column_session/csv_source.rb', line 7 def separator @separator end |