code: function (options) {
  
      var restClient = new nodeRestClient.Client(options);
  
      var promisifiedClient = Promise.promisifyAll(restClient, {
          filter: function (name) {
              return methodNamesToPromisify.indexOf(name) > -1;
          },
          promisifier: EventEmitterPromisifier,
          suffix: 'Promise'
      });
  
      promisifiedClient.registerMethodPromise =
          registerPromiseMethod.bind(promisifiedClient);
  
      return promisifiedClient;
  }
docs: A simple wrapper around `new Client(options)`, returning a promisified
  client object.
  
  @param options Options for `node-rest-client.Client`
  @returns {*} the promisified client