lib/lol/tournament_request.rb in ruby-lol-1.1.1 vs lib/lol/tournament_request.rb in ruby-lol-1.1.2

- old
+ new

@@ -44,16 +44,16 @@ # @return [Array<String>] generated tournament codes def create_codes tournament_id:, count: nil, allowed_participants: nil, map_type: "SUMMONERS_RIFT", metadata: nil, team_size: 5, pick_type: "TOURNAMENT_DRAFT", spectator_type: "ALL" body = { - "allowedParticipants" => allowed_participants, - "mapType" => map_type, - "metadata" => metadata, - "pickType" => pick_type, - "spectatorType" => spectator_type, - "teamSize" => team_size + "allowedSummonerIds" => allowed_participants, + "mapType" => map_type, + "metadata" => metadata, + "pickType" => pick_type, + "spectatorType" => spectator_type, + "teamSize" => team_size }.compact uri_params = { "tournamentId" => tournament_id, "count" => count }.compact @@ -66,13 +66,13 @@ # @param [String] map_type The map type of the game. Valid values are SUMMONERS_RIFT, TWISTED_TREELINE, CRYSTAL_SCAR, and HOWLING_ABYSS. # @param [String] pick_type The pick type of the game. Valid values are BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT. # @param [String] spectator_type The spectator type of the game. Valid values are NONE, LOBBYONLY, ALL. def update_code tournament_code, allowed_participants: nil, map_type: nil, pick_type: nil, spectator_type: nil body = { - "allowedParticipants" => allowed_participants, - "mapType" => map_type, - "pickType" => pick_type, - "spectatorType" => spectator_type + "allowedSummonerIds" => allowed_participants, + "mapType" => map_type, + "pickType" => pick_type, + "spectatorType" => spectator_type }.compact perform_request api_url("codes/#{tournament_code}"), :put, body end # Returns the tournament code details