lib/middlewares/transform-response.js
function Bundle(transform, req, res) {
  this.status = res.__status || 200;
  this.body = res.__body || {};
  this.apiMethod = res.__apiMethod;
  this.apiInstanceMethod = res.__apiInstanceMethod;
  this.apiStaticMethod = res.__apiStaticMethod;
  this.api = res.__api;
  this.modelAPI = res.__modelAPI;
  if (this.modelAPI) {
    this.model = this.modelAPI.model.modelName;
  }
  transform.call(this, req, res);
}
function Bundle(transform, req, res) {
  this.status = res.__status || 200;
  this.body = res.__body || {};
  this.apiMethod = res.__apiMethod;
  this.apiInstanceMethod = res.__apiInstanceMethod;
  this.apiStaticMethod = res.__apiStaticMethod;
  this.api = res.__api;
  this.modelAPI = res.__modelAPI;
  if (this.modelAPI) {
    this.model = this.modelAPI.model.modelName;
  }
  transform.call(this, req, res);
}
function Bundle ( transform , req , res ) { this . status = res . __status || 200 ; this . body = res . __body || { } ; this . apiMethod = res . __apiMethod ; this . apiInstanceMethod = res . __apiInstanceMethod ; this . apiStaticMethod = res . __apiStaticMethod ; this . api = res . __api ; this . modelAPI = res . __modelAPI ; if ( this . modelAPI ) { this . model = this . modelAPI . model . modelName ; } transform . call ( this , req , res ) ; }
Bundle - class to aggregate data to be changed

@param  {Function} transform the function transforms `this.status` and `this.body`
@param  {Number} status      HTTP Response code
@param  {Any} body           The Body to be changed
@return {Transformer}        created transformed option
Bundle - class to aggregate data to be changed