Sha256: 593e01b51b74f24f76f5f763fb59f979420e9ca43e4e44908a7553724d9116d4
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
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}" # Ranked stats for summoner. # # @see https://developer.riotgames.com/api/methods#!/1018/3452 # @param summoner_id [Fixnum] ID of summoner # @param season [String] Optional - valid season # @return [Hash] ranked stats def ranked_stats(summoner_id: , season: nil) response_for RANKED, {summonerId: summoner_id, season: season} end # Summary stats for summoner. # # @see https://developer.riotgames.com/api/methods#!/1018/3453 # @param summoner_id [Fixnum] ID of summoner # @param season [String] Optional - valid season # @return [Hash] various aggregate stats def summary_stats(summoner_id: , season: nil) response_for SUMMARY, {summonerId: summoner_id, season: season} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
taric-0.4.0 | lib/taric/operation/stats.rb |