RouteInjector/route-injector

View on GitHub
lib/responses/Response.js

Summary

Maintainability
A
0 mins
Test Coverage
"use strict";
/**
 * Created by gerard on 27/01/16.
 */
/// <reference path='../../typings/index.d.ts'/>
var RiResponse = /** @class */ (function () {
    function RiResponse(title, msg) {
        this.error = title;
        this.message = msg;
    }
    RiResponse.prototype.toJson = function () {
        return {
            error: this.error,
            message: this.message
        };
    };
    return RiResponse;
}());
module.exports = RiResponse;
//# sourceMappingURL=Response.js.map