formula1.js
Version:
Formula 1 Ergast API Wrapper
26 lines (25 loc) • 668 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Driver = void 0;
class Driver {
constructor(s, data) {
this.id = data.driverId;
this.permanentNumber = data.permanentNumber;
this.code = data.code;
this.firstName = data.givenName;
this.lastName = data.familyName;
this.dateOfBirth = data.dateOfBirth;
this.nationality = data.nationality;
this.standing = s;
}
standing;
id;
permanentNumber;
code;
firstName;
lastName;
dateOfBirth;
nationality;
fullName = () => `${this.firstName} ${this.lastName}`;
}
exports.Driver = Driver;