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

Version Path
sportradar-api-0.11.19 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.18 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.17 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.16 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.15 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.14 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.13 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.12 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.11 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.10 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.9 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.8 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.7 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.6 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.5 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.4 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.3 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.1 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.0 lib/sportradar/api/football/nfl/play.rb