league: R6 Class for League of Legends end point

Description Public fields Methods

Description

R6 class to access the Teamfight Tactics API. This class is base on the different API path as illustrated in the Riot API website.

Public fields

api

Riot API

region

API region, acceptable values: BR1, EUN1, EUW1, JP1, KR, LA1, LA2, NA1, OC1, TR1, RU

dry_run

If true all end point call will return glued URL

league

search by league end points. See [league_league] for more info

match

search by match end points. See [league_match] for more info

summoner

search by summoner end points. See [league_summoner] for more info

champion_mastery

search by champion mastery

Methods

Public methods


Method new()

Create a new league object

Usage
league$new(api, region, dry_run = FALSE)
Arguments
api

Riot API

region

Access region

dry_run

Whether to call API

Returns

A new 'league' object


Method clone()

The objects of this class are cloneable with this method.

Usage
league$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


its-gazza/riotR documentation built on July 12, 2020, 12:06 a.m.