import Item from '../../../../../src/js/structs/Item';

module.exports = class ServiceSpec extends Item {
  getId() {
    return this.get('id') || '';
  }

  toJSON() {
    return this.get();
  }
};

import Item from '../../../../../src/js/structs/Item';

module.exports = class ServiceSpec extends Item {
  getId() {
    return this.get('id') || '';
  }

  getResources() {
    return {
      cpus: 0,
      mem: 0,
      gpus: 0,
      disk: 0
    };
  }

  toJSON() {
    return this.get();
  }
};

Add a resource getter to the abstract service spec
Add a resource getter to the abstract service spec
