You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
354 B

10 years ago
'use strict';
function Address(opts) {
opts = opts || {};
10 years ago
this.createdOn = Math.floor(Date.now() / 1000);
this.address = opts.address;
this.path = opts.path;
10 years ago
};
Address.fromObj = function (obj) {
var x = new Address();
10 years ago
x.createdOn = obj.createdOn;
x.address = obj.address;
x.path = obj.path;
return x;
10 years ago
};
module.exports = Address;