Method: Datafile::ZipDataset#read

Defined in:
lib/datafile/workers/zip/dataset.rb

#readObject



54
55
56
57
58
59
60
61
62
63
# File 'lib/datafile/workers/zip/dataset.rb', line 54

def read
  if @dataset.is_a?( FootballDataset )
    logger.info( "read football dataset (zip) '#{@dataset.name}', '#{@dataset.setup}'" )

    pack = SportDb::ZipPackage.new( local_zip_path )
    pack.read( season: @dataset.setup )   ##  note: pass on (optional) setup arg as season (filter) arg for now
  else
    logger.info( "TODO/FIX: read dataset (zip) '#{@dataset.name}', '#{@dataset.setup}'; sorry" )
  end
end