Sha256: 2303bd811b03e3d17809b309f4ac9050b1a56804579206941d26d2e19d24978f
Contents?: true
Size: 701 Bytes
Versions: 3
Compression:
Stored size: 701 Bytes
Contents
require_relative 'base' module Taric module Operation module Stats include Taric::Operation::Base STATS_VERSION = 'v1.3'.freeze BASE_STATS_URL = Addressable::Template.new "#{BASE_URL_FN.(STATS_VERSION)}/stats/by-summoner/{summonerId}{?api_key}" RANKED = Addressable::Template.new "#{BASE_STATS_URL}/ranked{?api_key}" SUMMARY = Addressable::Template.new "#{BASE_STATS_URL}/summary{?api_key}" def ranked(summoner_id: , season: nil) response_for RANKED, {summonerId: summoner_id, season: season} end def summary(summoner_id: , season: nil) response_for SUMMARY, {summonerId: summoner_id, season: season} end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taric-0.1.4 | lib/taric/operation/stats.rb |
taric-0.1.2 | lib/taric/operation/stats.rb |
taric-0.1.1 | lib/taric/operation/stats.rb |