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.27 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.26 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.25 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.24 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.23 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.22 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.21 lib/sportradar/api/football/nfl/play.rb
sportradar-api-0.11.20 lib/sportradar/api/football/nfl/play.rb