lib/PingppResource.js
function PingppResource(pingpp, urlData) {
  this._pingpp = pingpp;
  this._urlData = urlData || {};

  this.basePath = utils.makeURLInterpolator(pingpp.getApiField('basePath'));
  this.path = utils.makeURLInterpolator(this.path);

  if (this.includeBasic) {
    this.includeBasic.forEach(function(methodName) {
      this[methodName] = PingppResource.BASIC_METHODS[methodName];
    }, this);
  }

  this.initialize.apply(this, arguments);
}
function PingppResource(pingpp, urlData) {
  this._pingpp = pingpp;
  this._urlData = urlData || {};

  this.basePath = utils.makeURLInterpolator(pingpp.getApiField('basePath'));
  this.path = utils.makeURLInterpolator(this.path);

  if (this.includeBasic) {
    this.includeBasic.forEach(function(methodName) {
      this[methodName] = PingppResource.BASIC_METHODS[methodName];
    }, this);
  }

  this.initialize.apply(this, arguments);
}
function PingppResource ( pingpp , urlData ) { this . _pingpp = pingpp ; this . _urlData = urlData || { } ; this . basePath = utils . makeURLInterpolator ( pingpp . getApiField ( 'basePath' ) ) ; this . path = utils . makeURLInterpolator ( this . path ) ; if ( this . includeBasic ) { this . includeBasic . forEach ( function ( methodName ) { this [ methodName ] = PingppResource . BASIC_METHODS [ methodName ] ; } , this ) ; } this . initialize . apply ( this , arguments ) ; }
Encapsulates request logic for a Pingpp Resource
Encapsulates request logic for a Pingpp Resource