mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
24 lines
365 B
JavaScript
24 lines
365 B
JavaScript
'use strict';
|
|
|
|
const Parser = require('..');
|
|
|
|
/** @namespace */
|
|
class Analytics {
|
|
#page;
|
|
|
|
/**
|
|
* @param {object} response - API response.
|
|
*/
|
|
constructor(response) {
|
|
this.#page = Parser.parseResponse(response);
|
|
|
|
this.sections = this.#page.contents_memo.get('Element');
|
|
}
|
|
|
|
get page() {
|
|
return this.#page;
|
|
}
|
|
}
|
|
|
|
module.exports = Analytics;
|