Sha256: cad72deb4a86b16a8dece34e278aef6a82ade42b7630d62ca5690ae31f2fdee7

Contents?: true

Size: 758 Bytes

Versions: 28

Compression:

Stored size: 758 Bytes

Contents

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

          def down
            start_situation.down
          end

          def yfd
            start_situation.yfd
          end
          # 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

28 entries across 28 versions & 1 rubygems

Version Path
sportradar-api-0.11.47 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.46 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.45 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.44 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.43 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.42 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.41 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.40 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.39 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.38 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.37 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.36 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.35 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.34 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.33 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.32 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.31 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.30 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.29 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.28 lib/sportradar/api/football/nfl/play.rb