Sha256: 1d817781224f1a15fc0e71d4b183c94e6fc72ac9b5853322806c3977f44189f4
Contents?: true
Size: 874 Bytes
Versions: 4
Compression:
Stored size: 874 Bytes
Contents
# frozen_string_literal: true module RatingChgkV2 module Models class TournamentModel < BaseModel def appeals endpoint.reinitialize add_query: :appeals RatingChgkV2::Collections::TournamentAppealsCollection.load :do_get, endpoint end def requests endpoint.reinitialize add_query: :requests RatingChgkV2::Collections::TournamentRequestsCollection.load :do_get, endpoint end def results(params = {}) endpoint.reinitialize new_params: params, add_query: :results RatingChgkV2::Collections::TournamentResultsCollection.load :do_get, endpoint end def create_result(params = {}) endpoint.reinitialize new_params: params, add_query: :results RatingChgkV2::Models::TournamentResultModel.load :do_post, endpoint end end end end
Version data entries
4 entries across 4 versions & 1 rubygems