lib/sportradar/api/basketball/nba/division.rb in sportradar-api-0.9.59 vs lib/sportradar/api/basketball/nba/division.rb in sportradar-api-0.10.0

- old
+ new

@@ -10,10 +10,11 @@ @api = opts[:api] @id = data["id"] @name = data["name"] @alias = data["alias"] - @teams_hash = create_data({}, response["team"], klass: Team, division: self, api: @api) # if response["team"] + @assigned_teams = nil + @teams_hash = create_data({}, data["teams"], klass: Team, division: self, api: @api) # if response["team"] end def teams @assigned_teams || @teams_hash.values end