Sha256: 21fb4e97a0fa9d02f510105828ba5c9fec724571732b9ae400718f52097cd2de

Contents?: true

Size: 634 Bytes

Versions: 5

Compression:

Stored size: 634 Bytes

Contents

# frozen_string_literal: true

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

      def team(id)
        model_load name: 'Team', ep_name: 'Teams', ep_params: id
      end

      def team_seasons(id, params = {})
        collection_load name: 'PlayerSeasons', ep_name: 'Teams', ep_params: [[id, :seasons], params]
      end

      def team_tournaments(id, params = {})
        collection_load name: 'TeamTournaments', ep_name: 'Teams', ep_params: [[id, :tournaments], 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/teams.rb
rating-chgk-v2-1.1.0 lib/rating_chgk_v2/rest/teams.rb
rating-chgk-v2-1.0.1 lib/rating_chgk_v2/rest/teams.rb
rating-chgk-v2-1.0.0 lib/rating_chgk_v2/rest/teams.rb
rating-chgk-v2-1.0.0.rc1 lib/rating_chgk_v2/rest/teams.rb