@meisens1/lotr-sdk
Version:
Lord of the Rings SDK for the one API v2
15 lines (14 loc) • 623 B
JavaScript
//model for Movies
class Movie {
constructor(id, name, runtimeInMinutes, budgetInMillions, boxOfficeRevenueInMillions, academyAwardNominations, academyAwardWins, rottenTomatoesScore) {
this.id = id;
this.name = name;
this.runtimeInMinutes = runtimeInMinutes;
this.budgetInMillions = budgetInMillions;
this.boxOfficeRevenueInMillions = boxOfficeRevenueInMillions;
this.academyAwardNominations = academyAwardNominations;
this.academyAwardWins = academyAwardWins;
this.rottenTomatoesScore = rottenTomatoesScore;
}
}
module.exports = Movie;