Split up our plex and tmdb classes into more logical files with a common media class that it extends off of.

This commit is contained in:
2018-02-07 13:38:25 +01:00
parent af64a4e28a
commit 6564948af8
3 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
class Media {
constructor(title, year, type) {
this.title = title;
this.year = year;
this.type = type;
}
toString() {
return `N: ${this.title} | Y: ${this.year} | T: ${this.type}`;
}
print() {
/* eslint-disable no-console */
console.log(this.toString());
}
}
module.exports = Media;