lib/jwt/taskrouter/TaskRouterCapability.js
function Policy(options) {
  options = options || {};
  this.url = options.url;
  this.method = options.method || 'GET';
  this.queryFilter = options.queryFilter || {};
  this.postFilter = options.postFilter || {};
  this.allow = options.allow || true;
}
function Policy(options) {
  options = options || {};
  this.url = options.url;
  this.method = options.method || 'GET';
  this.queryFilter = options.queryFilter || {};
  this.postFilter = options.postFilter || {};
  this.allow = options.allow || true;
}
function Policy ( options ) { options = options || { } ; this . url = options . url ; this . method = options . method || 'GET' ; this . queryFilter = options . queryFilter || { } ; this . postFilter = options . postFilter || { } ; this . allow = options . allow || true ; }
Create a new Policy

@constructor
@param {object} options - ...
@param {string} [options.url] - Policy URL
@param {string} [options.method] - HTTP Method
@param {object} [options.queryFilter] - Request query filter allowances
@param {object} [options.postFilter] - Request post filter allowances
@param {boolean} [options.allowed] - Allow the policy
Create a new Policy