mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-11-22 16:30:11 +00:00
Scrub.
This commit is contained in:
parent
c3ec3f28bd
commit
b3fb2c7130
@ -1,7 +1,7 @@
|
|||||||
/**
|
/**
|
||||||
Totals analysis for HackMyResume.
|
Section analysis for HackMyResume.
|
||||||
@license MIT. See LICENSE.md for details.
|
@license MIT. See LICENSE.md for details.
|
||||||
@module gap-inspector.js
|
@module totals-inspector.js
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -16,32 +16,27 @@ Totals analysis for HackMyResume.
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Identify gaps in the candidate's employment history.
|
Retrieve sectional overview and summary information.
|
||||||
@class gapInspector
|
@class totalsInspector
|
||||||
*/
|
*/
|
||||||
var gapInspector = module.exports = {
|
var totalsInspector = module.exports = {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
moniker: 'totals-inspector',
|
moniker: 'totals-inspector',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Run the Totals Analyzer on a resume.
|
Run the Totals Inspector on a resume.
|
||||||
@method run
|
@method run
|
||||||
@return An array of object representing gaps in the candidate's employment
|
@return An array of objects containing summary information for each section
|
||||||
history. Each object provides the start, end, and duration of the gap:
|
on the resume.
|
||||||
{ <-- gap
|
|
||||||
start: // A Moment.js date
|
|
||||||
end: // A Moment.js date
|
|
||||||
duration: // Gap length
|
|
||||||
}
|
|
||||||
*/
|
*/
|
||||||
run: function( rez ) {
|
run: function( rez ) {
|
||||||
|
|
||||||
var ret = { };
|
var ret = { };
|
||||||
|
|
||||||
_.each( rez, function(val, key){
|
_.each( rez, function(val, key){
|
||||||
|
|
||||||
if( _.isArray( val ) && !_.isString(val) ) {
|
if( _.isArray( val ) && !_.isString(val) ) {
|
||||||
ret[ key ] = val.length;
|
ret[ key ] = val.length;
|
||||||
}
|
}
|
||||||
@ -51,11 +46,9 @@ Totals analysis for HackMyResume.
|
|||||||
else if( val.sets && _.isArray( val.sets ) ) {
|
else if( val.sets && _.isArray( val.sets ) ) {
|
||||||
ret[ key ] = val.sets.length;
|
ret[ key ] = val.sets.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user