trello-sprinter
Version:
Provides summarizations of sprint activity in a Trello project
16 lines (13 loc) • 381 B
JavaScript
/*
* Represents a single sprint in the sprints analysis
*/
export const Sprint = function(sprints, start, end) {
this.sprints = sprints;
this.start_meeting = start;
this.end_meeting = end;
this.completed = [];
}
Sprint.prototype.end_time = function() {
return new Date(this.end_meeting.created.getTime() +
(this.sprints.sprint_time_slop * 1000));
}