hardlounge/lib/models/msg.js
2014-05-02 23:54:31 +02:00

14 lines
221 B
JavaScript

var _ = require("lodash");
var moment = require("moment");
module.exports = Msg;
function Msg(attr) {
_.merge(this, _.extend({
time: moment().format("HH:mm"),
type: "normal",
from: "",
text: "",
}, attr));
};