lib/sportradar/api/basketball/plays/base.rb in sportradar-api-0.9.35 vs lib/sportradar/api/basketball/plays/base.rb in sportradar-api-0.9.36
- old
+ new
@@ -62,10 +62,10 @@
def clock_seconds
m,s = @clock.split(':')
m.to_i * 60 + s.to_i
end
def game_seconds
- ([quarter, 4].min * 720) + ([quarter - 4, 0].max * 300) - clock_seconds # seconds elapsed in game, will be wrong in overtime
+ ([quarter, 4].min * 720) + ([quarter - 4, 0].max * 300) - clock_seconds # seconds elapsed in game, only works for NBA
end
def update(data, **opts)
@event_type = data['event_type'] # "lineupchange",
@clock = data['clock'] # "12:00",