Sha256: 7153037557a3e3e89e1ee3cc3124cac66161d836a8a2d11526423a34e8a6ec5d

Contents?: true

Size: 657 Bytes

Versions: 184

Compression:

Stored size: 657 Bytes

Contents

module Sportradar
  module Api
    module Basketball
      class EndPeriod < Play::Base
        def display_type
          ''
        end

        def end_of_period?
          true
        end

        def quarter_break?
          ["End of 1st Quarter.", "End of 3rd Quarter."].include? description
        end
        def end_of_regulation?
          description == "End of 4th Quarter." || description == "End of 2nd Half."
        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

184 entries across 184 versions & 1 rubygems

Version Path
sportradar-api-0.20.2 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.20.1 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.20.0 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.20.0.pre2 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.20.0.pre lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.19.6 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.19.5 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.19.4 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.19.3 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.19.2 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.19.1 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.19.0 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.18.1 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.18.0 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.17.6 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.17.5 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.17.5.pre lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.17.4 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.17.3 lib/sportradar/api/basketball/plays/end_period.rb
sportradar-api-0.17.2 lib/sportradar/api/basketball/plays/end_period.rb