lib/sportradar/api/football/ncaafb/drive.rb in sportradar-api-0.11.23 vs lib/sportradar/api/football/ncaafb/drive.rb in sportradar-api-0.11.24
- old
+ new
@@ -2,9 +2,15 @@
module Api
module Football
class Ncaafb
class Drive < Sportradar::Api::Football::Drive
+ alias :team_id :team
+
+ def end_reason
+ plays.last.parsed_ending || 'UNKNOWN'
+ end
+
def over?
plays.last&.parsed_ending || (overtime? && ['End of Quarter', 'End of Game'].include?(plays.last&.description))
end
def handle_plays_and_events(data, **opts)