tft: R6 Class for Teamfight Tactics end point (TFT)

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

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

match

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

summoner

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

Methods

Public methods


Method new()

Create a new tft object

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

Riot API

region

Access region

dry_run

Whether to call API

Returns

A new 'tft' object


Method clone()

The objects of this class are cloneable with this method.

Usage
tft$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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