lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.41 vs lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.42
- old
+ new
@@ -2,9 +2,19 @@
module Api
module Football
class Ncaafb
class Play < Sportradar::Api::Football::Play
+ def play_type
+ if @play_type == 'Kick'
+ 'Kickoff'
+ elsif @play_type == 'ExtraPoint'
+ 'Extra Point'
+ else
+ super
+ end
+ end
+
def yards
(counted_play? && (statistics.pass&.first || statistics.rush&.first)&.yards).to_i
end
def counted_play?