Module: Sports

Defined in:
lib/sports.rb,
lib/sports/config.rb,
lib/sports/structs/goal.rb,
lib/sports/structs/team.rb,
lib/sports/structs/group.rb,
lib/sports/structs/match.rb,
lib/sports/structs/round.rb,
lib/sports/structs/league.rb,
lib/sports/structs/country.rb,
lib/sports/structs/matchlist.rb,
lib/sports/structs/standings.rb,
lib/sports/structs/team_usage.rb

Overview

add convenience shortcut helpers

Defined Under Namespace

Classes: Club, Country, Goal, GoalEvent, Group, League, Match, Matchlist, NationalTeam, Round, Standings, Team, TeamUsage

Class Method Summary collapse

Class Method Details

.configObject



38
# File 'lib/sports/config.rb', line 38

def self.config()  SportDb::Import.config; end

.configure {|config| ... } ⇒ Object

note: just forward to SportDb::Import configuration!!!!!

keep Sports module / namespace "clean"
  that is, only include data structures (e.g. Match,League,etc) for now - why? why not?

Yields:



37
# File 'lib/sports/config.rb', line 37

def self.configure()  yield( config ); end