lib/sportradar/api/basketball/nba/game.rb in sportradar-api-0.9.45 vs lib/sportradar/api/basketball/nba/game.rb in sportradar-api-0.9.46

- old
+ new

@@ -105,9 +105,17 @@ @scoring_raw.update(data, source: source) create_data(@teams_hash, data['team'], klass: Team, api: api, game: self) if data['team'] end + def home + @teams_hash[@home_id] || @home + end + + def away + @teams_hash[@away_id] || @away + end + def box @box ||= get_box end def pbp if !future? && quarters.empty? \ No newline at end of file