Sha256: 115ad0a59af46c57a525b61414613318f489cc2089d599e08c0f9a969f020355

Contents?: true

Size: 825 Bytes

Versions: 5

Compression:

Stored size: 825 Bytes

Contents

# frozen_string_literal: true

module RatingChgkV2
  module Rest
    module Tournaments
      def tournaments(params = {})
        collection_load name: 'Tournaments', ep_params: [[], params]
      end

      def tournament(id)
        model_load name: 'Tournament', ep_name: 'Tournaments', ep_params: id
      end

      def tournament_appeals(id)
        collection_load name: 'TournamentAppeals', ep_name: 'Tournaments', ep_params: [[id, :appeals]]
      end

      def tournament_requests(id)
        collection_load name: 'TournamentRequests', ep_name: 'Tournaments', ep_params: [[id, :requests]]
      end

      def tournament_results(id, params = {})
        collection_load name: 'TournamentResults', ep_name: 'Tournaments', ep_params: [[id, :results], params]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rating-chgk-v2-1.2.0 lib/rating_chgk_v2/rest/tournaments.rb
rating-chgk-v2-1.1.0 lib/rating_chgk_v2/rest/tournaments.rb
rating-chgk-v2-1.0.1 lib/rating_chgk_v2/rest/tournaments.rb
rating-chgk-v2-1.0.0 lib/rating_chgk_v2/rest/tournaments.rb
rating-chgk-v2-1.0.0.rc1 lib/rating_chgk_v2/rest/tournaments.rb