aboutsummaryrefslogtreecommitdiff
path: root/src/models/Lab.js
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-04-10 21:35:13 -0500
committerFurkan Sahin <furkan-dev@proton.me>2021-04-10 21:35:13 -0500
commit74e6cc31e83ad570a9f06765d288e9024736e73f (patch)
treea9757e9ffa099a3d3be5786d20d623e2ce933855 /src/models/Lab.js
parentea8dcfe3bf1ebe84ac483bb91e37ee4faa0d77ea (diff)
Commit MVP
Diffstat (limited to 'src/models/Lab.js')
-rw-r--r--src/models/Lab.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/models/Lab.js b/src/models/Lab.js
new file mode 100644
index 0000000..2e4412d
--- /dev/null
+++ b/src/models/Lab.js
@@ -0,0 +1,17 @@
+import EventInfo from '@/models/EventInfo';
+
+export default class Lab {
+ constructor(course = 0, section = 0, event = new EventInfo()) {
+ this.course = course;
+ this.section = section;
+ this.event = event;
+ }
+
+ get id() {
+ return `${this.course}-${this.section}`;
+ }
+
+ get fullInfo() {
+ return `${this.id} ${this.event.info}`;
+ }
+}