lib/sportradar/api/basketball/ncaamb/game.rb in sportradar-api-0.11.0 vs lib/sportradar/api/basketball/ncaamb/game.rb in sportradar-api-0.11.1
- old
+ new
@@ -4,10 +4,20 @@
class Ncaamb
class Game < Sportradar::Api::Basketball::Game
# NCAA MB specific
+ def period_display
+ if period > 5
+ "#{period - 4}OT"
+ elsif period == 5
+ 'OT'
+ else
+ "Q#{period}"
+ end
+ end
+
def team_class
Team
end
def period_class
Half
@@ -19,9 +29,14 @@
alias :half :period
alias :halfs :periods
def api
@api || Sportradar::Api::Basketball::Ncaamb.new
+ end
+
+ def sim!
+ @api = api.sim!
+ self
end
end
end
end
\ No newline at end of file