Sha256: fdcfd41312eaae767ad91c06449895628bb635ead3642e8d1b87e7dc511068d1

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 Bytes

Contents

module Sportradar
  module Api
    module Football
      class Ncaaf
        class Play < Sportradar::Api::Football::Play

          # def parse_player
          #   # TODO: Currently there is an issue where we are only mapping one player_id to a play, but there are plays with multiple players involved.
          #   play_stats = @statistics.penalty || @statistics.rush || @statistics.return || @statistics.receive
          #   if play_stats.is_a?(Array)
          #     play_stats = play_stats.first
          #   end
          #   @player_id = play_stats&.player&.id
          # end

        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sportradar-api-0.11.0 lib/sportradar/api/football/ncaafb/play.rb