Module: FootballDb::Import

Defined in:
lib/footballdb/clubs.rb

Class Method Summary collapse

Class Method Details

.build_club_indexObject


14
15
16
17
18
19
20
21
# File 'lib/footballdb/clubs.rb', line 14

def self.build_club_index
  recs = SportDb::Import::Club.read( "#{FootballDb::Clubs.data_dir}/clubs.txt" )
  club_index = SportDb::Import::ClubIndex.new
  club_index.add( recs )
  recs = SportDb::Import::WikiReader.read( "#{FootballDb::Clubs.data_dir}/clubs.wiki.txt" )
  club_index.add_wiki( recs )
  club_index
end