Diff of /contract/lib/Doctor.js [000000] .. [de9008]

Switch to side-by-side view

--- a
+++ b/contract/lib/Doctor.js
@@ -0,0 +1,33 @@
+'use strict';
+
+class Doctor {
+  /**
+   *
+   * Doctor
+   *
+   * Constructor for a Doctor object.    
+   *  
+   * @param args.licenseId - the license number of the Doctor 
+   * @param args.name - name of Doctor
+   * @param args.age - age of Doctor
+   * @param args.phNo - phone number of Doctor
+   * @returns - doctor object
+   */
+  constructor(doctorId, licenseId, name, age, phNo) {
+
+      this.doctorId =  doctorId;
+      this.licenseId = licenseId;
+      this.name = name;
+      this.age = age;
+      this.phNo = phNo;
+      this.type = 'doctor';
+
+      return this;
+
+    } 
+
+  }
+
+
+
+module.exports = Doctor;
\ No newline at end of file