lib/sportradar/api/nfl/game.rb in sportradar-api-0.9.9 vs lib/sportradar/api/nfl/game.rb in sportradar-api-0.9.10
- old
+ new
@@ -64,9 +64,15 @@
end
def name
"#{away.name} vs #{home.name}"
end
+ def started?
+ ['inprogress', 'halftime', 'delayed'].include?(status)
+ end
+ def finished?
+ status == "closed"
+ end
def sport_league
'NFL'.freeze
end