import Model from 'ember-data/model';
import attr from 'ember-data/attr';
import computed from 'ember-computed';

export default Model.extend({
  tiny: attr('string'),
  large: attr('string'),
  medium: attr('string'),
  small: attr('string'),
  template: attr('string'),

  frontPage: computed('template', function() {
    return this.get('template').replace('{width}', '140').replace('{height}', '196');
  })
});
