lib/sportradar/api/football/quarter.rb in sportradar-api-0.11.53 vs lib/sportradar/api/football/quarter.rb in sportradar-api-0.11.54
- old
+ new
@@ -21,10 +21,13 @@
@away_points = data["away_points"]
@home_info = data["home"]
@away_info = data["away"]
- opts[:game].update_drives(data['pbp']) if data['pbp']
+ if data['pbp']
+ opts[:game].update_drives(data['pbp'])
+ create_data(@drives_hash, data['pbp'], klass: drive_class, api: api, quarter: self)
+ end
self
end
def overtime?