Class: SportDb::Package
- Inherits:
-
Object
- Object
- SportDb::Package
- Defined in:
- lib/sportdb/readers/package.rb
Instance Method Summary collapse
-
#read_match(*names, season: nil) ⇒ Object
(also: #read)
note: add readers here; for full class def see the sourcein sportdb-formats!!!.
Instance Method Details
#read_match(*names, season: nil) ⇒ Object Also known as: read
note: add readers here; for full class def see the sourcein sportdb-formats!!!
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/sportdb/readers/package.rb', line 6 def read_match( *names, season: nil ) if names.empty? ## no (entry) names passed in; read in all each_match do |entry| SportDb.parse_match( entry.read, season: season ) end else names.each do |name| entry = @pack.find( name ) SportDb.parse_match( entry.read, season: season ) end end end |