new InterviewsFactory(adxDirPath)
Create a new instance of interviews factory
const ADX = require('adxutil').ADX;
const myAdx = new ADX('path/to/adx/');
myAdx.load((err) => {
if (err) {
throw err;
}
// Get the instance of the interviews
const inter = myAdx.interviews.create();
console.log(inter.id);
});
Parameters:
Name | Type | Description |
---|---|---|
adxDirPath |
String | Path of the ADX directory |
Members
-
path :String
-
Path of the ADX directory
Type:
- String
Methods
-
clear()
-
Remove all instance of interviews
-
create()
-
Create a new instance of interview
Returns:
Returns a new instance of interview
- Type
- Interview
-
getById(id)
-
Get the instance of interview using his id
Parameters:
Name Type Description id
String Id of the interview to retrieve
Returns:
- Type
- undefined | Interview
-
remove(id)
-
Remove the instance of interview using his id
Parameters:
Name Type Description id
String Id of the interview to remove