Sha256: e2d427c1c1aed431c0bbfcb7ba813a9051447696da5675b5bd29c4d1d211437d
Contents?: true
Size: 946 Bytes
Versions: 3
Compression:
Stored size: 946 Bytes
Contents
require_relative 'base' require_relative 'endpoint_template' module Taric module Operation module Summoner include Taric::Operation::Base BASE_SUMMONER_URL = "https://{host}/lol/summoner/v3/summoners" SUMMONER_BY_ID = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/{summonerId}{?api_key}") SUMMONER_BY_NAME = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/by-name/{summonerName}{?api_key}") SUMMONER_BY_ACCOUNT_ID = EndpointTemplate.new(template_url: "#{BASE_SUMMONER_URL}/by-account/{accountId}{?api_key}") def summoner_by_id(summoner_id:) response_for SUMMONER_BY_ID, {summonerId: summoner_id} end def summoner_by_name(summoner_name:) response_for SUMMONER_BY_NAME, {summonerName: summoner_name} end def summoner_by_account_id(account_id:) response_for SUMMONER_BY_ACCOUNT_ID, {accountId: account_id} end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
taric-1.0.0.pre.beta.0 | lib/taric/operation/summoner.rb |
taric-1.0.0.pre.alpha.8 | lib/taric/operation/summoner.rb |
taric-1.0.0.pre.alpha.6 | lib/taric/operation/summoner.rb |