lib/WorkamajigResource.js
/**
 * Encapsulates request logic for a Workamajig Resource
 */
Encapsulates request logic for a Workamajig Resource
Encapsulates request logic for a Workamajig Resource
function WorkamajigResource(workamajig, urlData) {
  this._workamajig = workamajig;
  this._urlData = urlData || {};
  this.basePath = utils.makeURLInterpolator(workamajig.getApiField('basePath'));
  this.path = utils.makeURLInterpolator(this.path);
  this.apiVersion = utils.makeURLInterpolator(workamajig.getApiField('version'));
  if (this.includeBasic) {
    this.includeBasic.forEach(function(methodName) {
      this[methodName] = WorkamajigResource.BASIC_METHODS[methodName];
    }, this);
  }
  this.initialize.apply(this, arguments);
}
function WorkamajigResource ( workamajig , urlData ) { this . _workamajig = workamajig ; this . _urlData = urlData || { } ; this . basePath = utils . makeURLInterpolator ( workamajig . getApiField ( 'basePath' ) ) ; this . path = utils . makeURLInterpolator ( this . path ) ; this . apiVersion = utils . makeURLInterpolator ( workamajig . getApiField ( 'version' ) ) ; if ( this . includeBasic ) { this . includeBasic . forEach ( function ( methodName ) { this [ methodName ] = WorkamajigResource . BASIC_METHODS [ methodName ] ; } , this ) ; } this . initialize . apply ( this , arguments ) ; }
Encapsulates request logic for a Workamajig Resource
Encapsulates request logic for a Workamajig Resource