[+] Encapsulate getGrading(term)

This commit is contained in:
Hykilpikonna
2019-12-07 11:17:30 -05:00
parent e44724a173
commit e57b5a5d69
+11 -1
View File
@@ -103,7 +103,7 @@ export default class Course
}
else this.level = 'Unknown';
this.grading = new Array(4);
this.rawGrading = new Array(4);
}
/**
@@ -131,6 +131,16 @@ export default class Course
this.computed = {termAssignments: termAssignments, allYearGrade: -1};
}
/**
* Get grading by term
*
* @param term
*/
getGrading(term: number)
{
return this.rawGrading[term];
}
/**
* Is graded or not
*/