lib/sportradar/api/nfl/game.rb in sportradar-api-0.9.5 vs lib/sportradar/api/nfl/game.rb in sportradar-api-0.9.6
- old
+ new
@@ -65,14 +65,14 @@
def current_score
"#{summary.home.points}-#{summary.away.points}" if summary
end
def drives
- quarters&.flat_map(&:drives).compact
+ Array(quarters&.flat_map(&:drives)).compact
end
def plays
- drives&.flat_map(&:plays).compact
+ Array(drives&.flat_map(&:plays)).compact
end
end
end
end