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

export default Model.extend({
  assetType: attr('string'),
  location: attr('string'),
  location2x: attr('string'),
  mediaType: attr('string'),

  locationUrl: computed('location', function() {
    return (window.devicePixelRatio >= 2) ? this.get('location2x') : this.get('location');
  })
});
