Sha256: cdb78af7f4a67fb7c8e2f25ef80de3de38973c92d12fec9b78d55b367e62d22f
Contents?: true
Size: 627 Bytes
Versions: 19
Compression:
Stored size: 627 Bytes
Contents
module Sportradar module Api module Football class Nfl 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
19 entries across 19 versions & 1 rubygems