UNPKG

geography-apis-sdk

Version:

SDK for making requests to Geography APIs

26 lines (23 loc) 510 B
/** * Represents the Gini coefficient of a country. */ class Gini { /** * Creates an instance of the Gini class. * @param {object} data - The Gini data. */ constructor(data) { if(typeof data == 'undefined') return; /** * The Gini coefficient value. * @type {number} */ this.value = data.value; /** * The year of the Gini coefficient measurement. * @type {number} */ this.year = data.year; } } module.exports = Gini;