lib/sportradar/api/football/nfl/play.rb in sportradar-api-0.11.19 vs lib/sportradar/api/football/nfl/play.rb in sportradar-api-0.11.20

- old
+ new

@@ -2,9 +2,16 @@ 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