mirror of
https://gitlab.silvrtree.co.uk/martind2000/censis-obrand.git
synced 2025-02-11 20:19:16 +00:00
17 lines
396 B
JavaScript
17 lines
396 B
JavaScript
import DS from 'ember-data';
|
|
|
|
const { attr } = DS;
|
|
|
|
export default DS.Model.extend({
|
|
uid: DS.attr('string'),
|
|
login: DS.attr('string'),
|
|
/*name: 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')
|
|
});
|