lib/entities/enrollment_attempt.js
function enrollmentAttempt(data, active) {
  var self = object.create(enrollmentAttempt.prototype);

  self.data = data;
  self.active = active || false;

  return self;
}
function enrollmentAttempt(data, active) {
  var self = object.create(enrollmentAttempt.prototype);

  self.data = data;
  self.active = active || false;

  return self;
}
function enrollmentAttempt ( data , active ) { var self = object . create ( enrollmentAttempt . prototype ) ; self . data = data ; self . active = active || false ; return self ; }
Represents a not-yet-complete enrollment; once it is complete an enrollment
will be created instead

@param {string} data.enrollmentTxId
@param {string} data.otpSecret
@param {string} data.issuer.name
@param {string} data.issuer.label
@param {string} data.recoveryCode
@param {string} data.baseUrl
@param {string} data.enrollmentId

@param {boolean} active

@private
Represents a not - yet - complete enrollment ; once it is complete an enrollment will be created instead