lib/taric/operation/team.rb in taric-0.4.0 vs lib/taric/operation/team.rb in taric-0.5.0

- old
+ new

@@ -1,15 +1,16 @@ require_relative 'base' +require_relative 'endpoint_template' 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}" + TEAMS_BY_SUMMONER_IDS = EndpointTemplate.new(template_url: "#{BASE_TEAM_URL}/by-summoner/{summonerIds}") + TEAMS_BY_TEAM_IDS = EndpointTemplate.new(template_url: "#{BASE_TEAM_URL}/{teamIds}") # Teams by summoner ids. # # @param summoner_ids [String] comma separated list of summoner ids # @return [Hash] team info by summoner id