Module: Hextech::League::Summoner

Defined in:
lib/hextech/league/summoner.rb,
lib/hextech/league/summoner/base.rb,
lib/hextech/league/summoner/by_puuid.rb,
lib/hextech/league/summoner/by_account_id.rb,
lib/hextech/league/summoner/by_summoner_id.rb,
lib/hextech/league/summoner/by_summoner_name.rb

Defined Under Namespace

Classes: Base, ByAccountId, ByPuuid, BySummonerId, BySummonerName

Class Method Summary collapse

Class Method Details

.by_account_id(account_id:, region: 'euw1') ⇒ Object



14
15
16
# File 'lib/hextech/league/summoner.rb', line 14

def (account_id:, region: 'euw1')
  Summoner::ByAccountId.call(account_id: , region: region)
end

.by_id(id:, region: 'euw1') ⇒ Object



18
19
20
# File 'lib/hextech/league/summoner.rb', line 18

def by_id(id:, region: 'euw1')
  Summoner::BySummonerId.call(id: id, region: region)
end

.by_name(name:, region: 'euw1') ⇒ Object



22
23
24
# File 'lib/hextech/league/summoner.rb', line 22

def by_name(name:, region: 'euw1')
  Summoner::BySummonerName.call(name: name, region: region)
end

.by_puuid(puuid:, region: 'euw1') ⇒ Object



26
27
28
# File 'lib/hextech/league/summoner.rb', line 26

def by_puuid(puuid:, region: 'euw1')
  Summoner::ByPuuid.call(puuid: puuid, region: region)
end