1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import Model from 'ember-data/model' import attr from 'ember-data/attr' import toNumber from 'intercom-test-assignment/macros/to-number' export default Model.extend({ // ----- Attributes ----- name: attr('string'), latitude: attr('number'), longitude: attr('number'), // ----- Computed properties ----- numericId: toNumber('id') }) |