lib/sportradar/api/basketball/nba/team.rb in sportradar-api-0.9.34 vs lib/sportradar/api/basketball/nba/team.rb in sportradar-api-0.9.35
- old
+ new
@@ -123,10 +123,11 @@
end
def parse_season_stats(data)
@team_stats = data.dig('team_records')
update(data)
- create_data(@players_hash, data.dig('player_records', 'player'), klass: Player, api: api, team: self)
+ player_data = data.dig('player_records', 'player')
+ create_data(@players_hash, player_data, klass: Player, api: api, team: self)
data
end
def path_base
"teams/#{ id }"
\ No newline at end of file