Sha256: 3f6f1717d3cf453f9c68277314bb9c7ec1d1c57c3208df271326a0c4c493f93c

Contents?: true

Size: 770 Bytes

Versions: 17

Compression:

Stored size: 770 Bytes

Contents

require_relative 'base'
module Taric
  module Operation
    module Team
      include Taric::Operation::Base

      TEAM_VERSION = 'v2.4'.freeze
      BASE_TEAM_URL = "#{BASE_URL_FN.(TEAM_VERSION)}/team"

      TEAMS_BY_SUMMONER_IDS = Addressable::Template.new "#{BASE_TEAM_URL}/by-summoner/{summonerIds}"
      TEAMS_BY_TEAM_IDS = Addressable::Template.new "#{BASE_TEAM_URL}/{teamIds}"

      # @see https://developer.riotgames.com/api/methods#!/937/3247
      def teams_by_summoner_ids(summoner_ids:)
        response_for TEAMS_BY_SUMMONER_IDS, {summonerIds: summoner_ids}
      end

      # @see https://developer.riotgames.com/api/methods#!/937/3246
      def teams(team_ids:)
        response_for TEAMS_BY_TEAM_IDS, {teamIds: team_ids}
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
taric-0.3.4 lib/taric/operation/team.rb
taric-0.3.3 lib/taric/operation/team.rb
taric-0.3.1 lib/taric/operation/team.rb
taric-0.3.0 lib/taric/operation/team.rb
taric-0.2.4 lib/taric/operation/team.rb
taric-0.2.2 lib/taric/operation/team.rb
taric-0.2.1 lib/taric/operation/team.rb
taric-0.2.0 lib/taric/operation/team.rb
taric-0.1.14 lib/taric/operation/team.rb
taric-0.1.13 lib/taric/operation/team.rb
taric-0.1.12 lib/taric/operation/team.rb
taric-0.1.11 lib/taric/operation/team.rb
taric-0.1.10 lib/taric/operation/team.rb
taric-0.1.9 lib/taric/operation/team.rb
taric-0.1.8 lib/taric/operation/team.rb
taric-0.1.7 lib/taric/operation/team.rb
taric-0.1.6 lib/taric/operation/team.rb