lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.59 vs lib/sportradar/api/football/ncaafb/play.rb in sportradar-api-0.11.60

- old
+ new

@@ -28,10 +28,10 @@ def made_first_down? statistics.pass&.first&.firstdown == 1 || statistics.rush&.first&.firstdown == 1 end def yards - (counted_play? && (statistics.pass&.first || statistics.rush&.first)&.yards).to_i + counted_play? ? (statistics.pass&.first || statistics.rush&.first)&.yards.to_i : 0 end def counted_play? ['rush', 'pass'].include?(self.play_type) && !self.description.include?('No Play') end