{"size": 565, "ext": "js", "max_stars_repo_path": "src/assets/response.js", "max_stars_repo_name": "nerdfiles/was", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/assets/response.js", "max_issues_repo_name": "nerdfiles/was", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/assets/response.js", "max_forks_repo_name": "nerdfiles/was", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.2258064516, "max_line_length": 65, "alphanum_fraction": 0.5805309735}
// Generated by CoffeeScript 1.11.1
var Response;

Response = (function() {
  function Response(body, code) {
    this.body = body;
    switch (typeof code) {
      case 'undefined':
        this.code = 200;
        break;
      case 'number':
        this.code = code;
        break;
      default:
        throw new TypeError('Response code must be an integer.');
    }
  }

  Response.prototype.render = function() {
    return {
      statusCode: this.code,
      body: JSON.stringify(this.body)
    };
  };

  return Response;

})();

export default Response;
