1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.PathComposer = void 0;
|
4 | class PathComposer {
|
5 | constructor(targetAttribute) {
|
6 | this.targetAttribute = targetAttribute;
|
7 | }
|
8 | getPath(elementsSummary) {
|
9 | return elementsSummary
|
10 | .map((elemensSummary) => elemensSummary.attributes[this.targetAttribute])
|
11 | .filter((attribute) => attribute !== undefined)
|
12 | .join('.');
|
13 | }
|
14 | }
|
15 | exports.PathComposer = PathComposer;
|