srtrain
Version:
Node.js SRT train unofficial SDK
20 lines (19 loc) • 484 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SRTStation = void 0;
const station_1 = require("./constants/station");
class SRTStation {
code;
name;
constructor(code) {
this.code = code;
this.name = station_1.SRTStationName[code];
}
[Symbol.for('nodejs.util.inspect.custom')]() {
return this.toString();
}
toString() {
return `${this.name}역`;
}
}
exports.SRTStation = SRTStation;