all files / lib/UrlGenerator/ UrlGeneratorPartArray.js

100% Statements 6/6
100% Branches 0/0
100% Functions 2/2
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26                    22×               96×        
'use strict';
 
Object.defineProperty(exports, "__esModule", {
    value: true
});
let UrlGeneratorPartArray = class UrlGeneratorPartArray {
    // parts: Array;
 
    /**
     * @param {Array} parts
    */
    constructor(parts) {
        this.parts = parts;
    }
 
    /**
     * @param {object} args
     * @returns {string}
    */
    generate(args) {
        return this.parts.map(p => p.generate(args)).join('');
    }
 
};
exports.default = UrlGeneratorPartArray;
//# sourceMappingURL=UrlGeneratorPartArray.js.map