All files / src/Services/Alti/Response/model Measure.js

14.28% Statements 1/7
0% Branches 0/2
0% Functions 0/1
14.28% Lines 1/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 27 28 29 30 31                                              1x              
 
/**
 * Single measure object returned by underlying web service if measures = true and zonly = false
 *
 * @property {String} source_name - Name of the source
 * @property {String} source_measure - Name of the measure
 * @property {Float} z - Point elevation.
 * @property {Float} acc - Accuracy of elevation for this point. (only if zonly=false)
 *
 * @namespace
 * @alias Gp.Services.Alti.Measure
 */
function Measure () {
    if (!(this instanceof Measure)) {
        throw new TypeError("Measure constructor cannot be called as a function.");
    }
 
    this.source_name = null;
    this.source_measure = null;
    this.z = null;
    this.acc = null;
}
 
Measure.prototype = {
 
    constructor : Measure
 
};
 
export default Measure;