class RiotAPI::Strategies::Summoner
Public Class Methods
new(params={})
click to toggle source
Calls superclass method
RiotAPI::Strategies::Default::new
# File lib/riot_api/strategies/summoner.rb, line 8 def initialize(params={}) options = { version: "v1.4", type: "summoner" }.merge(params) super options end
Public Instance Methods
by_ids(ids)
click to toggle source
Get summoner objects mapped by summoner ID for a given list of summoner IDs
# File lib/riot_api/strategies/summoner.rb, line 24 def by_ids(ids) request_url + "/" + ids end
by_names(names)
click to toggle source
Get summoner objects mapped by standardized summoner name for a given list of summoner names
# File lib/riot_api/strategies/summoner.rb, line 18 def by_names(names) request_url + "/by-name/" + names end
masteries_by_ids(ids)
click to toggle source
Get mastery pages mapped by summoner ID for a given list of summoner IDs
# File lib/riot_api/strategies/summoner.rb, line 30 def masteries_by_ids(ids) request_url + "/" + ids + "/masteries" end
names_by_ids(ids)
click to toggle source
Get summoner names mapped by summoner ID for a given list of summoner IDs
# File lib/riot_api/strategies/summoner.rb, line 36 def names_by_ids(ids) request_url + "/" + ids + "/name" end
runes_by_ids(ids)
click to toggle source
Get rune pages mapped by summoner ID for a given list of summoner IDs
# File lib/riot_api/strategies/summoner.rb, line 42 def runes_by_ids(ids) request_url + "/" + ids + "/runes" end