From 74e6cc31e83ad570a9f06765d288e9024736e73f Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Sat, 10 Apr 2021 21:35:13 -0500 Subject: Commit MVP --- src/models/Lab.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/models/Lab.js (limited to 'src/models/Lab.js') 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}`; + } +} -- cgit v1.2.3