Top Level Namespace

Defined Under Namespace

Modules: SportDb, SportDbCli

Constant Summary collapse

Badge =

todo/fix: just use include SportDb::Models - why? why not? is it possible/working?

SportDb::Model::Badge
Event =
SportDb::Model::Event
Game =
SportDb::Model::Game
Goal =
SportDb::Model::Goal
Group =
SportDb::Model::Group
League =
SportDb::Model::League
Person =
SportDb::Model::Person
Roster =
SportDb::Model::Roster
Round =
SportDb::Model::Round
Season =
SportDb::Model::Season
Team =
SportDb::Model::Team
Race =

todo: check for racing.db extension if present?? only add if present

SportDb::Model::Race
Record =
SportDb::Model::Record
Run =
SportDb::Model::Run
Track =
SportDb::Model::Track
Tag =
WorldDb::Model::Tag
Tagging =
WorldDb::Model::Tagging
Continent =
WorldDb::Model::Continent
Country =
WorldDb::Model::Country
Region =
WorldDb::Model::Region
City =
WorldDb::Model::City
Prop =
WorldDb::Model::Prop
DB_CONFIG =

connect to db

{
  adapter:  'sqlite3',
  database: './sport.db'
}
AT =

some countries

Country.find_by_key( 'at' )
DE =
Country.find_by_key( 'de' )
EN =
Country.find_by_key( 'en' )
US =
Country.find_by_key( 'us' )
CA =
Country.find_by_key( 'ca' )
MX =
Country.find_by_key( 'mx' )
EURO2008 =

some events

Event.find_by_key( 'euro.2008' )
EURO2012 =
Event.find_by_key( 'euro.2012' )
EURO =

add alias

EURO2012
BL =
Event.find_by_key( 'de.2013/14' )
PL =
Event.find_by_key( 'en.2013/14' )
BARCA =

some club teams

Team.find_by_key( 'barcelona' )
MANU =
Team.find_by_key( 'manunited' )
MUN =

add alias

MANUNITED = MANU
BAYERN =
Team.find_by_key( 'bayern' )
AUSTRIA =
Team.find_by_key( 'austria' )
ESP =

some national teams (three letter fifa codes)

Team.find_by_key( 'esp' )
GER =
Team.find_by_key( 'ger' )
AUT =
Team.find_by_key( 'aut' )
MEX =
Team.find_by_key( 'mex' )
ARG =
Team.find_by_key( 'arg' )

Instance Method Summary collapse

Instance Method Details

#fetcherObject

check if already included in datafile gem ??



9
# File 'lib/sportdb.rb', line 9

require 'fetcher'