league-wrapper
Version:
REST API Wrapper for the League of Legends API
19 lines (15 loc) • 418 B
JavaScript
;
const convert = require('../../util/convert.js');
/**
* @class
* @alias module:LeagueWrapper/dto/match~Mastery
* @property {number} masteryId - Mastery ID
* @property {number} rank - Mastery rank
*/
class Mastery {
constructor(data) {
this.masteryId = convert(data.masteryId, Number);
this.rank = convert(data.rank, Number);
}
}
exports = module.exports = Mastery;