project/app/models/account.js
Martin Donnelly e06e53e5bd whats wrong?
2016-04-06 16:53:06 +01:00

15 lines
365 B
JavaScript

import DS from 'ember-data';
//const { attr } = DS;
export default DS.Model.extend({
uid: DS.attr('string'),
login: DS.attr('string'),
forename: DS.attr('string'),
surname: DS.attr('string'),
memberof: DS.attr('string'),
fullName: function() {
return '%@ %@'.fmt(this.get('forename'), this.get('surname'));
}.property('forename', 'surname')
});