UNPKG

pterodactyl.js

Version:
22 lines (21 loc) 593 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Location { constructor(data) { this.id = data.id; this.shortCode = data.short; this.description = data.long; this.updatedAt = new Date(data.updated_at); this.createdAt = new Date(data.created_at); } toJSON() { return { id: this.id, shortCode: this.shortCode, description: this.description, updatedAt: this.updatedAt, createdAt: this.createdAt }; } } exports.default = Location;