2015-04-12 08:42:47 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-04-18 01:53:16 +02:00
|
|
|
// Load Chance
|
|
|
|
var Chance = require('chance');
|
2015-04-12 08:42:47 +02:00
|
|
|
|
2015-04-18 01:53:16 +02:00
|
|
|
// Instantiate Chance so it can be used
|
|
|
|
var chance = new Chance();
|
2015-04-12 08:42:47 +02:00
|
|
|
|
|
|
|
|
2015-04-18 01:53:16 +02:00
|
|
|
var Comparison = function Comparison(a,b) {
|
|
|
|
return {
|
|
|
|
created: Date.now(),
|
|
|
|
a: a,
|
|
|
|
b: b,
|
|
|
|
_id: chance.hash()
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = Comparison;
|