lib/sportradar/api/soccer/tournament_group.rb in sportradar-api-0.9.1 vs lib/sportradar/api/soccer/tournament_group.rb in sportradar-api-0.9.2

- old
+ new

@@ -14,10 +14,10 @@ @top_goals = parse_players(data["top_goals"]["player"]) if data["top_goals"] && data["top_goals"]["player"] @top_own_goals = parse_players(data["top_own_goals"]["player"]) if data["top_own_goals"] && data["top_own_goals"]["player"] @top_assists = parse_players(data["top_assists"]["player"]) if data["top_assists"] && data["top_assists"]["player"] @top_cards = parse_players(data["top_cards"]["player"]) if data["top_cards"] && data["top_cards"]["player"] @top_points = parse_players(data["top_points"]["player"]) if data["top_points"] && data["top_points"]["player"] - @tournaments = parse_into_array(selector: response["tournaments"], klass: Sportradar::Api::Soccer::Tournament) if response["tournaments"] + @tournaments = parse_into_array(selector: response["tournament"], klass: Sportradar::Api::Soccer::Tournament) if response["tournament"] end private def parse_players(field_to_parse)