Guest User

Untitled

a guest
Jan 28th, 2017
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. let Recipe = (() => {
  2. let nextId = 0;
  3. class Recipe{
  4. constructor(name, rating, image, category){
  5. this._id = nextId++;
  6. this._name = name;
  7. this._rating = rating;
  8. this._image = image;
  9. this._category = category;
  10. }
  11.  
  12. set setName(name){
  13. this._name = name;
  14. }
  15. set setRating(rating){
  16. this._rating = rating;
  17. }
  18. set setImage(image){
  19. this._image = image;
  20. }
  21. set setCategory(category){
  22. this._category = category;
  23. }
  24. }
  25. return Recipe;
  26. })();
Add Comment
Please, Sign In to add comment