UNPKG

esios-api-client

Version:
13 lines (12 loc) 358 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PVPCHour = void 0; class PVPCHour { constructor(hour) { this.raw = hour; this.day = new Date(hour.day); this.hour = Number(hour.hour.split('-')[0]); this.price = Number(hour.total.replace(',', '.')); } } exports.PVPCHour = PVPCHour;