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