lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.48 vs lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.49

- old
+ new

@@ -39,9 +39,22 @@ def play? @event_type.nil? end + def scoring_play? + case @play_type + when 'fieldgoal' + statistics.field_goal&.made? + when 'extrapoint' + true # how does a missed PAT come in? + when 'safety' + true + else + statistics.pass&.touchdown? || statistics.rush&.touchdown? + end + end + def event? !play? end def halftime?