/*
 * @module Entity
 */
'use strict';

var Node = require('./node')

var util = require('./util.js')

/**
 * @class Entity
 * @extends Node
 * @see [Node](./node.md)
 * @see [Constructor Conventions](../conventions-constructor.md)
 * @param {Object} opts Relevant opts: _none_. Rest passed to `Node`.
 */
class Entity extends Node {
  constructor() {
    super()

    /**
     * @property {Date} created Date corresponding to creation time of the Entity.
     */
    this.created = new Date()

  }

}

module.exports = Entity

/*
 * @module Entity
 */
'use strict';

var Node = require('./node')

var util = require('./util')

/**
 * @class Entity
 * @extends Node
 * @see [Node](./node.md)
 * @see [Constructor Conventions](../conventions-constructor.md)
 */
class Entity extends Node {
  constructor() {

    var defaults =
      {
      }

    var [ opts, rest ] = util.parseOpts(arguments[0], defaults)

    super(rest)

    /**
     * @property {Date} created Date corresponding to creation time of the Entity.
     */
    this.created = new Date()

  }

}

module.exports = Entity

Clean up and prepare Entity class
Clean up and prepare Entity class
