moduleisconstructor.js 444 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Describe the module here.
  3. * @module mymodule/config
  4. */
  5. /**
  6. * Create a new configuration.
  7. *
  8. * @classdesc Describe the class here.
  9. * @class
  10. * @alias module:mymodule/config
  11. * @param {string} id
  12. */
  13. function Config(id) {
  14. /** Document me. */
  15. this.id = id;
  16. }
  17. /**
  18. * Get the configuration ID.
  19. *
  20. * @return {string} The configuration ID.
  21. */
  22. Config.prototype.getId = function() {
  23. return this.id;
  24. }
  25. module.exports = Config;