lib/sportradar/api/basketball/nba/game.rb in sportradar-api-0.9.27 vs lib/sportradar/api/basketball/nba/game.rb in sportradar-api-0.9.28
- old
+ new
@@ -198,9 +198,13 @@
quarts.is_a?(Array) ? quarts[0] : quarts
else
@quarter = nil
[]
end
+ if data['overtime']
+ extra_quarters = data['overtime'].is_a?(Hash) ? [data['overtime']] : data['overtime']
+ quarter_data.concat(extra_quarters)
+ end
set_pbp(quarter_data)
@pbp = @quarters_hash.values
check_newness(:pbp, plays.last)
data
end
\ No newline at end of file