lib/sportradar/api/football/stat_pack/passing.rb in sportradar-api-0.1.33 vs lib/sportradar/api/football/stat_pack/passing.rb in sportradar-api-0.1.34
- old
+ new
@@ -5,20 +5,21 @@
def set_stats
@attempts = response["attempts"]
@completions = response["completions"]
@cmp_pct = response["cmp_pct"]
- @yards = response["yards"]
+ # @yards = response["yards"]
@avg_yards = response["avg_yards"]
@sacks = response["sacks"]
@sack_yards = response["sack_yards"]
@touchdowns = response["touchdowns"]
@longest = response["longest"]
@interceptions = response["interceptions"]
@rating = response["rating"]
@longest_touchdown = response["longest_touchdown"]
@air_yards = response["air_yards"]
- @net_yards = response["net_yards"] # passing net_yards is the correct measure for team stats, as it includes sack yardage. that is how NFL counts team yardage
+ @net_yards = response["net_yards"] # passing net_yards is the correct measure for team stats, as it includes sack yardage
+ @yards = response["net_yards"] # should look further into this, make sure this isn't a bad idea
@redzone_attempts = response["redzone_attempts"]
end
end
end