all files / node-zoom2/lib/ records.js

100% Statements 10/10
100% Branches 0/0
100% Functions 3/3
100% Lines 10/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                     
'use strict';
 
var Record = require('./record');
 
module.exports = Records;
 
var records = Records.prototype;
 
function Records(records) {
  this._records = records;
}
 
records.hasNext = function () {
  return this._records.hasNext();
};
 
records.next = function () {
  var record = this._records.next();
  return new Record(record);
};