pterowrap
Version:
A node.js wrapper for Pterodactyl API
24 lines (23 loc) • 850 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Egg {
constructor(_client, data) {
this._client = _client;
const attributes = data.attributes;
this.id = attributes.id;
this.uuid = attributes.uuid;
this.name = attributes.name;
this.nest = attributes.nest;
this.author = attributes.author;
this.description = attributes.description;
this.docker_image = attributes.docker_image;
this.docker_images = attributes.docker_images;
this.config = attributes.config;
this.startup = attributes.startup;
this.script = attributes.script;
this.created_at = attributes.created_at;
this.updated_at = attributes.updated_at;
this.raw = attributes;
}
}
exports.default = Egg;