miataru/miataru-server

View on GitHub
lib/models/ResponseLocation.js

Summary

Maintainability
A
0 mins
Test Coverage
function ResponseLocation(list) {
    this._locationsList = list || [];
}

ResponseLocation.prototype.pushLocation = function(location) {
    this._locationsList.push(location);
};

ResponseLocation.prototype.data = function() {
    return {
        MiataruLocation: this._locationsList
    };
};

module.exports = ResponseLocation;