Class: DubbletrackRemote::Reader::TSV

Inherits:
Base
  • Object
show all
Defined in:
lib/dubbletrack_remote/reader/tsv.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#ingest, #items, #tracks, #traffic

Constructor Details

#initialize(path, use_database: true) ⇒ TSV

Returns a new instance of TSV.



7
8
9
10
11
# File 'lib/dubbletrack_remote/reader/tsv.rb', line 7

def initialize(path, use_database: true)
  @tsv_path = path # ENV['ENCO_LOG_PATH'] || 'RA071819.CSV' ||"K:\\DAD\\ASPLAY\\"

  @use_database = use_database
end

Instance Attribute Details

#use_databaseObject (readonly)

Returns the value of attribute use_database.



5
6
7
# File 'lib/dubbletrack_remote/reader/tsv.rb', line 5

def use_database
  @use_database
end