Class: SportDb::Package
- Inherits:
-
Object
- Object
- SportDb::Package
- Defined in:
- lib/sportdb/importers.rb
Instance Method Summary collapse
-
#read_csv(start: nil) ⇒ Object
(re)open class - note: adds more machinery; see sportdb-text for first/original/base definition.
Instance Method Details
#read_csv(start: nil) ⇒ Object
(re)open class - note: adds more machinery; see sportdb-text for first/original/base definition
17 18 19 20 21 22 23 |
# File 'lib/sportdb/importers.rb', line 17 def read_csv( start: nil ) ## start - season e.g. 1993/94 to start (skip older seasons) ## note: assume package holds country/national (club) league # use for importing german bundesliga, english premier league, etc. each_csv { |entry| SportDb.handle_csv( entry, start: start ) } end |