lib/digitalocean/util.js
function(client, initialData, totalLength, requestOptions, successStatuses, successRootKeys, promise) {
    this.currentPage = 1; // default to start at page 1
    // this.perPage = queryParams && queryParams.per_page || 25; // default to 25 per page
    this.totalLength = totalLength;
    // bootstrap with initial data
    this.push.apply(this, initialData);

    this.client = client;
    this.requestOptions = requestOptions;
    this.successStatuses = successStatuses;
    this.successRootKeys = successRootKeys;
    this.promise = promise;
  }
function(client, initialData, totalLength, requestOptions, successStatuses, successRootKeys, promise) {
    this.currentPage = 1; // default to start at page 1
    // this.perPage = queryParams && queryParams.per_page || 25; // default to 25 per page
    this.totalLength = totalLength;
    // bootstrap with initial data
    this.push.apply(this, initialData);

    this.client = client;
    this.requestOptions = requestOptions;
    this.successStatuses = successStatuses;
    this.successRootKeys = successRootKeys;
    this.promise = promise;
  }
function ( client , initialData , totalLength , requestOptions , successStatuses , successRootKeys , promise ) { this . currentPage = 1 ; // default to start at page 1 // this.perPage = queryParams && queryParams.per_page || 25; // default to 25 per page this . totalLength = totalLength ; // bootstrap with initial data this . push . apply ( this , initialData ) ; this . client = client ; this . requestOptions = requestOptions ; this . successStatuses = successStatuses ; this . successRootKeys = successRootKeys ; this . promise = promise ; }
A class that runs the pagination until the end if necessary.

@class ListResponse
A class that runs the pagination until the end if necessary .