lib/sportradar/api/football/ncaafb/drive.rb in sportradar-api-0.11.40 vs lib/sportradar/api/football/ncaafb/drive.rb in sportradar-api-0.11.41

- old
+ new

@@ -6,10 +6,13 @@ alias :team_id :team def update(data, **opts) super.tap { - @sequence = (opts[:game].drives.index(self) || opts[:game].drives.size) + 1 if opts[:game] + if opts[:game] + game_drives = opts[:game].drives.grep(Sportradar::Api::Football::Drive) + @sequence = game_drives.index(self) || game_drives.size + 1 + end } end def end_reason plays.last.parsed_ending || 'UNKNOWN'