13 lines
356 B
JavaScript
13 lines
356 B
JavaScript
import DS from 'ember-data';
|
|
|
|
export default DS.Model.extend({
|
|
firstName: DS.attr('string'),
|
|
lastName: DS.attr('string'),
|
|
email: DS.attr('string'),
|
|
twitter: DS.attr('string'),
|
|
totalArticles: DS.attr('number'),
|
|
fullName: Ember.computed('firstName', 'lastName', function(){
|
|
return this.get('firstName') + ' ' + this.get('lastName');
|
|
})
|
|
});
|