Method: Game.box_score
- Defined in:
- lib/game.rb
.box_score(team, week) ⇒ Object
returns a box score for a particular team
7 8 9 10 |
# File 'lib/game.rb', line 7 def self.box_score team, week data = request_service('BoxScore', [CoreExtensions::Fantasy::Date.regular_season, week, team])['Score'] # puts "#{data['AwayTeam']} vs. #{data['HomeTeam']}" end |