lib/sportradar/api/football/drive.rb in sportradar-api-0.11.19 vs lib/sportradar/api/football/drive.rb in sportradar-api-0.11.20
- old
+ new
@@ -24,10 +24,11 @@
def update(data, **opts)
@response = data
@type = data['type']
@team = data['team']
@clock = data['clock']
+ @overtime = !!opts[:quarter]&.overtime? || @overtime
@sequence = data["sequence"]
@start_reason = data["start_reason"]
@end_reason = data["end_reason"]
@play_count = data["play_count"]
@@ -41,9 +42,13 @@
@team_data = data['team']
handle_plays_and_events(data, **opts)
self
+ end
+
+ def overtime?
+ @overtime
end
def plays
@plays_hash.values
end