Class: Csvtool::Domain::CsvStatsSession::StatsSource

Inherits:
Object
  • Object
show all
Defined in:
lib/csvtool/domain/csv_stats_session/stats_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path:, separator:, headers_present:) ⇒ StatsSource

Returns a new instance of StatsSource.



9
10
11
12
13
# File 'lib/csvtool/domain/csv_stats_session/stats_source.rb', line 9

def initialize(path:, separator:, headers_present:)
  @path = path
  @separator = separator
  @headers_present = headers_present
end

Instance Attribute Details

#headers_presentObject (readonly)

Returns the value of attribute headers_present.



7
8
9
# File 'lib/csvtool/domain/csv_stats_session/stats_source.rb', line 7

def headers_present
  @headers_present
end

#pathObject (readonly)

Returns the value of attribute path.



7
8
9
# File 'lib/csvtool/domain/csv_stats_session/stats_source.rb', line 7

def path
  @path
end

#separatorObject (readonly)

Returns the value of attribute separator.



7
8
9
# File 'lib/csvtool/domain/csv_stats_session/stats_source.rb', line 7

def separator
  @separator
end