lib/sportradar/api/football/drive.rb in sportradar-api-0.11.0 vs lib/sportradar/api/football/drive.rb in sportradar-api-0.11.1

- old
+ new

@@ -11,20 +11,20 @@ super end end def initialize(data, **opts) - @response = data @id = data["id"] @api = opts[:api] @plays_hash = {} @events_hash = {} update(data, **opts) end def update(data, **opts) + @response = data @type = data['type'] @team = data['team'] @clock = data['clock'] @sequence = data["sequence"] @@ -49,9 +49,13 @@ @plays_hash.values end def events @events_hash.values + end + + def over? + !!@end_reason end def end_reason_possibilities [ 'UNKNOWN',