Class: Datafile::FootballDataset

Inherits:
Dataset
  • Object
show all
Defined in:
lib/datafile/datasets/football.rb

Instance Method Summary collapse

Methods inherited from Dataset

#download, #local_zip_name, #local_zip_path, #local_zip_root, #remote_zip_url, #setup

Constructor Details

#initialize(name, opts = {}) ⇒ FootballDataset

Returns a new instance of FootballDataset.



7
8
9
# File 'lib/datafile/datasets/football.rb', line 7

def initialize( name, opts={} )
  super( name, opts )
end

Instance Method Details

#readObject



11
12
13
14
15
# File 'lib/datafile/datasets/football.rb', line 11

def read()
  logger.info( "read football-dataset '#{@name}', '#{setup}'" )

  SportDb.read_setup_from_zip( local_zip_name(), setup(), local_zip_root() )
end