mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
18 lines
358 B
JavaScript
18 lines
358 B
JavaScript
const JaxRequest = require('../JaxRequest')
|
|
|
|
class LeagueEndpoint {
|
|
constructor(limiter, region) {
|
|
this.limiter = limiter
|
|
this.region = region
|
|
}
|
|
|
|
summonerID(summonerID) {
|
|
return new JaxRequest(
|
|
`league/v4/entries/by-summoner/${summonerID}`,
|
|
this.limiter,
|
|
this.region
|
|
).execute()
|
|
}
|
|
}
|
|
|
|
module.exports = LeagueEndpoint
|