Sha256: af89bbee10f7efd867f7b3f09d61717d0dfe0741647ae5fe4f4c9e6a4dd03038
Contents?: true
Size: 1.45 KB
Versions: 3
Compression:
Stored size: 1.45 KB
Contents
require_relative 'base' module Taric module Operation module MatchList include Taric::Operation::Base MATCH_LIST_VERSION = 'v2.2'.freeze MATCH_LIST = Addressable::Template.new "#{BASE_URL_FN.(MATCH_LIST_VERSION)}/matchlist/by-summoner/{summonerId}{?api_key,championIds,rankedQueues,seasons,beginTime,endTime,beginIndex,endIndex}" # @see https://developer.riotgames.com/api/methods#!/1026/3480 # @param summoner_id [Fixnum] summoner Id # @param champion_ids [String] Optional - Comma-separated list of champion IDs to use for fetching games. # @param ranked_queues [String] Optional - Comma-separated list of ranked queue types to use for fetching games. Non-ranked queue types will be ignored. # @param seasons [String] Optional - Comma-separated list of seasons to use for fetching games. # @param begin_time [Fixnum] Optional - The begin time in epoch milliseconds to use for fetching games. # @param end_time [Fixnum] Optional - The end time in epoch milliseconds to use for fetching games. def match_list(summoner_id:, champion_ids: nil, ranked_queues: nil, seasons: nil, begin_time: nil, end_time: nil, begin_index: nil, end_index: nil) response_for MATCH_LIST, {summonerId: summoner_id, championIds: champion_ids, rankedQueues: ranked_queues, seasons: seasons, beginTime: begin_time, endTime: end_time, beginIndex: begin_index, endIndex: end_index} end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taric-0.3.1 | lib/taric/operation/match_list.rb |
taric-0.3.0 | lib/taric/operation/match_list.rb |
taric-0.2.4 | lib/taric/operation/match_list.rb |