geography-apis-sdk
Version:
SDK for making requests to Geography APIs
28 lines (23 loc) • 552 B
JavaScript
/**
* Represents the driving side and road signs of a country.
*/
class Car {
/**
* Creates an instance of the Car class.
* @param {object} data - The car data.
*/
constructor(data) {
if(typeof data == 'undefined') return;
/**
* The driving side in the country.
* @type {string}
*/
this.drivingSide = data.drivingSide;
/**
* The road signs used in the country.
* @type {Array.<string>}
*/
this.roadSigns = data.roadSigns || [];
}
}
module.exports = Car;