lib/sportradar/api/basketball/nba/game.rb in sportradar-api-0.9.32 vs lib/sportradar/api/basketball/nba/game.rb in sportradar-api-0.9.33
- old
+ new
@@ -41,9 +41,12 @@
end
def overview
Overview.new(self)
end
+ def tied?
+ @score[away_id].to_i == @score[home_id].to_i
+ end
def points(team_id)
team_id.is_a?(Symbol) ? @score[@team_ids[team_id]].to_i : @score[team_id].to_i
end
def stats(team_id)
team_id.is_a?(Symbol) ? @team_stats[@team_ids[team_id]].to_i : @team_stats[team_id].to_i
\ No newline at end of file