index.js
function Policy(name, Transport, options) {
  var policy = this;

  if ('string' !== typeof name) {
    options = Transport;
    Transport = name;
    name = undefined;
  }

  if ('function' !== typeof Transport) {
    throw new Error('Transport should be a constructor.');
  }

  policy.name = (name || Transport.prototype.name).toLowerCase();
  policy.Transport = Transport;
  policy.options = options || {};
  policy.id = 0;
}
function Policy(name, Transport, options) {
  var policy = this;

  if ('string' !== typeof name) {
    options = Transport;
    Transport = name;
    name = undefined;
  }

  if ('function' !== typeof Transport) {
    throw new Error('Transport should be a constructor.');
  }

  policy.name = (name || Transport.prototype.name).toLowerCase();
  policy.Transport = Transport;
  policy.options = options || {};
  policy.id = 0;
}
function Policy ( name , Transport , options ) { var policy = this ; if ( 'string' !== typeof name ) { options = Transport ; Transport = name ; name = undefined ; } if ( 'function' !== typeof Transport ) { throw new Error ( 'Transport should be a constructor.' ) ; } policy . name = ( name || Transport . prototype . name ) . toLowerCase ( ) ; policy . Transport = Transport ; policy . options = options || { } ; policy . id = 0 ; }
Representation of one single transport policy.

@constructor
@param {String} name Name of the policy
@param {TransportLayer} Transport Constructor of a TransportLayer.
@param {Object} options Options for the transport & strategy instructions.
@api public
Representation of one single transport policy .