Sha256: 4cbddd03238374bd0e27369b500b86a0738fc6731676acf96c6219969e73d696

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

module RatingChgkV2
  module Models
    class PlayerModel < BaseModel
      def seasons(params = {})
        endpoint.reinitialize new_params: params, add_query: :seasons
        RatingChgkV2::Collections::PlayerSeasonsCollection.load :do_get, endpoint
      end

      def tournaments(params = {})
        endpoint.reinitialize new_params: params, add_query: :tournaments
        RatingChgkV2::Collections::PlayerTournamentsCollection.load :do_get, endpoint
      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/models/player_model.rb
rating-chgk-v2-1.1.0 lib/rating_chgk_v2/models/player_model.rb
rating-chgk-v2-1.0.1 lib/rating_chgk_v2/models/player_model.rb
rating-chgk-v2-1.0.0 lib/rating_chgk_v2/models/player_model.rb
rating-chgk-v2-1.0.0.rc1 lib/rating_chgk_v2/models/player_model.rb