lib/sportradar/api/football/ncaafb/drive.rb in sportradar-api-0.11.36 vs lib/sportradar/api/football/ncaafb/drive.rb in sportradar-api-0.11.37

- old
+ new

@@ -4,9 +4,15 @@ class Ncaafb class Drive < Sportradar::Api::Football::Drive alias :team_id :team + def update(data, **opts) + super.tap { + @sequence = (opts[:game].drives.index(self) || opts[:game].drives.size) + 1 if opts[:game] + } + end + def end_reason plays.last.parsed_ending || 'UNKNOWN' end def over?