lib/sportradar/api/football/ncaafb/drive.rb in sportradar-api-0.11.33 vs lib/sportradar/api/football/ncaafb/drive.rb in sportradar-api-0.11.34
- old
+ new
@@ -22,12 +22,10 @@
def play_count
plays.count(&:counted_play?)
end
def gain
- Array(plays.select(&:counted_play?)).sum do |play|
- Array(play.statistics.pass).map(&:yards).inject(:+).to_i + Array(play.statistics.rush).map(&:yards).inject(:+).to_i
- end
+ Array(plays.select(&:counted_play?)).map(&:yards).inject(:+).to_i
end
end
end
end