i399exexpress/task.js

15 lines
236 B
JavaScript
Raw Permalink Normal View History

2017-05-09 15:42:06 +03:00
'use strict';
class Task {
2017-05-10 09:57:37 +03:00
constructor(content) {
this.content = content;
2017-05-09 15:42:06 +03:00
}
static withId(id, title) {
let task = new Task(title);
task._id = id;
return task;
}
}
module.exports = Task;