lib/sportdb/calc.rb in sportdb-1.9.5 vs lib/sportdb/calc.rb in sportdb-1.9.6
- old
+ new
@@ -1,19 +1,25 @@
# encoding: utf-8
module SportDb
+############
+##
+## fix/todo: obsolete
+## - use new Standings class
+
##############################################
# helper/ builds standings table in memory
# - find a better module name for StandingsHelper ?? why? why not?
module StandingsHelper
## todo:
## add team_id to struct - why? why not? - saves a db lookup?
class Stats
+ ### fix/todo: change/rename :pos to :rank
attr_accessor :pos, :played, :won, :lost, :drawn,
:goals_for, :goals_against, :pts,
:recs
def initialize