lib/sportdb/formats/structs/match.rb in sportdb-formats-1.1.2 vs lib/sportdb/formats/structs/match.rb in sportdb-formats-1.1.3

- old
+ new

@@ -16,10 +16,11 @@ :winner, # return 1,2,0 1 => team1, 2 => team2, 0 => draw/tie :round, ## todo/fix: use round_num or similar - for compat with db activerecord version? why? why not? :leg, ## e.g. '1','2','3','replay', etc. - use leg for marking **replay** too - keep/make leg numeric?! - why? why not? :stage, :group, + :status, ## e.g. replay, cancelled, awarded, abadoned, postponed, etc. :conf1, :conf2, ## special case for mls e.g. conference1, conference2 (e.g. west, east, central) :country1, :country2, ## special case for champions league etc. - uses FIFA country code :comments, :league ## (optinal) added as text for now (use struct?) @@ -44,9 +45,10 @@ ## todo: use to_s - why? why not? @round = kwargs[:round] if kwargs.has_key? :round @stage = kwargs[:stage] if kwargs.has_key? :stage @leg = kwargs[:leg] if kwargs.has_key? :leg @group = kwargs[:group] if kwargs.has_key? :group + @status = kwargs[:status] if kwargs.has_key? :status @comments = kwargs[:comments] if kwargs.has_key? :comments @league = kwargs[:league] if kwargs.has_key? :league