UNPKG

league-wrapper

Version:

REST API Wrapper for the League of Legends API

17 lines (13 loc) 401 B
'use strict'; const convert = require('../../util/convert.js'); /** * @class * @alias module:LeagueWrapper/dto/currentGame~Observer * @property {string} encryptionKey - Key used to decrypt the spectator grid game data for playback */ class Observer { constructor(data) { this.encryptionKey = convert(data.encryptionKey, String); } } exports = module.exports = Observer;