Class: Worldfootball::Generator
- Inherits:
-
Object
- Object
- Worldfootball::Generator
- Defined in:
- lib/worldfootball/generator.rb
Instance Method Summary collapse
-
#generate(league:, season:) ⇒ Object
always download for now - why? why not? support cache - why? why not?.
Instance Method Details
#generate(league:, season:) ⇒ Object
always download for now - why? why not?
support cache - why? why not?
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/worldfootball/generator.rb', line 14 def generate( league:, season: ) ## for testing use cached version always - why? why not? ## step 1 - download Worldfootball.schedule( league: league, season: season ) ## step 2 - convert (to .csv) ## todo/fix - convert in-memory and return matches Worldfootball.convert( league: league, season: season ) source_dir = Worldfootball.config.convert.out_dir Writer.write( league: league, season: season, source: source_dir ) end |