censis-archive/obrand/obrand-admin/app/models/account.js

13 lines
341 B
JavaScript
Raw Normal View History

2016-06-06 10:45:51 +00:00
import DS from 'ember-data';
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')
});