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

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

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

@@ -149,16 +149,118 @@
 ';%0A  %7D%0A%0A
+  getResources() %7B%0A    return %7B%0A      cpus: 0,%0A      mem: 0,%0A      gpus: 0,%0A      disk: 0%0A    %7D;%0A  %7D%0A%0A
   toJSON

Add a resource getter to the abstract service spec