lib/chgk_rating/client.rb in chgk_rating-2.1.0 vs lib/chgk_rating/client.rb in chgk_rating-2.2.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module ChgkRating class Client # Returns a single Team # # @raise [ChgkRating::Error::NotFound] Error raised when the Team cannot be found. @@ -136,11 +138,11 @@ # @param team_or_id [String, Integer or ChgkRating::Models::Team] Team to load tournaments for. # @param season_id [String or Integer] Season to load tournaments for # @option params [String or Integer] :page The requested page. Default is 1 def tournaments(team_or_id: nil, season_id: nil, params: {}) ChgkRating::Collections::Tournaments.new params.merge( - team: team_or_id, season_id: season_id + team: team_or_id, season_id: season_id ) end # Returns a collection of Tournaments that the Player has participated in # @@ -199,6 +201,6 @@ # @param team_or_id [String, Integer or ChgkRating::Models::Team] Team to load players for. def team_players_at_tournament(tournament_or_id, team_or_id) team_at_tournament(tournament_or_id, team_or_id).players end end -end \ No newline at end of file +end