Sha256: 8142a44e6ff897e6afd2cfc4d1042c62f15f9660b10ab67b5079f47d4f3e464b
Contents?: true
Size: 827 Bytes
Versions: 18
Compression:
Stored size: 827 Bytes
Contents
require_relative 'base' module Taric module Operation module Stats include Taric::Operation::Base STATS_VERSION = 'v1.3'.freeze BASE_STATS_URL = "#{BASE_URL_FN.(STATS_VERSION)}/stats/by-summoner/{summonerId}" RANKED = Addressable::Template.new "#{BASE_STATS_URL}/ranked{?api_key,season}" SUMMARY = Addressable::Template.new "#{BASE_STATS_URL}/summary{?api_key,season}" # @see https://developer.riotgames.com/api/methods#!/961/3297 def ranked_stats(summoner_id: , season: nil) response_for RANKED, {summonerId: summoner_id, season: season} end # @see https://developer.riotgames.com/api/methods#!/961/3298 def summary_stats(summoner_id: , season: nil) response_for SUMMARY, {summonerId: summoner_id, season: season} end end end end
Version data entries
18 entries across 18 versions & 1 rubygems