lib/sportradar/api/football/quarter.rb in sportradar-api-0.11.19 vs lib/sportradar/api/football/quarter.rb in sportradar-api-0.11.20
- old
+ new
@@ -21,12 +21,16 @@
@away_points = data["away_points"]
@home_info = data["home"]
@away_info = data["away"]
- create_data(@drives_hash, data['pbp'], klass: drive_class, api: api, game: self) if data['pbp']
+ create_data(@drives_hash, data['pbp'], klass: drive_class, api: api, quarter: self) if data['pbp']
self
+ end
+
+ def overtime?
+ @number > 4
end
def drives
@drives_hash.values
end