function Resource(parent, definition) {
  this.parent = parent;
  this.definition = definition;

  // add mixins
  this._link = linkMixin;

  this._setup();
}
function Resource(parent, definition) {
  this.parent = parent;
  this.definition = definition;

  // add mixins
  this._link = linkMixin;

  this._setup();
}
function Resource ( parent , definition ) { this . parent = parent ; this . definition = definition ; // add mixins this . _link = linkMixin ; this . _setup ( ) ; }
Initialize a new `Resource` with the given `parent` and `definition`.

@param {Function} parent The parent this resource is attached to.
@param {Object} definition The resource definition.
@api private
Initialize a new Resource with the given parent and definition .