Sha256: da0b73f7dfb93411fc49fff35e6f45e1fdf49ee958dcb31e0afb53d184bc8bd1
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
module Sportradar module Api module Basketball class EndPeriod < Play::Base def display_type end_of_ot? ? 'End OT' : 'End Quarter' end def quarter_break? ["End of 1st Quarter.", "End of 3rd Quarter."].include? description end def end_of_regulation? description == "End of 4th Quarter." end def end_of_ot? description.start_with?("End of ") && description.end_with?(" OT.") end def halftime? description == 'End of 1st Half.' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sportradar-api-0.9.33 | lib/sportradar/api/basketball/plays/end_period.rb |