lib/aggregateModel.js
function (data) {
    if (arguments.length === 2) {
      dotty.put(this.attributes, arguments[0], arguments[1]);
    } else if (_.isObject(data)) {
      for (var m in data) {
        dotty.put(this.attributes, m, data[m]);
      }
    }
  }
function (data) {
    if (arguments.length === 2) {
      dotty.put(this.attributes, arguments[0], arguments[1]);
    } else if (_.isObject(data)) {
      for (var m in data) {
        dotty.put(this.attributes, m, data[m]);
      }
    }
  }
function ( data ) { if ( arguments . length === 2 ) { dotty . put ( this . attributes , arguments [ 0 ] , arguments [ 1 ] ) ; } else if ( _ . isObject ( data ) ) { for ( var m in data ) { dotty . put ( this . attributes , m , data [ m ] ) ; } } }
Sets attributes for the aggregate.

@example:
aggregate.set('firstname', 'Jack');
// or
aggregate.set({
firstname: 'Jack',
lastname: 'X-Man'
});
Sets attributes for the aggregate .