import run from 'ember-runloop';

let id = 0;
export function loadGameDetail(attributes){
  let gameDetail;
  run(() => {
    [gameDetail] = this.store.push({
      data:[{
        id:id++,
        type: 'game-detail',
        attributes
      }]
    });
  });
  this.set('gameDetail', gameDetail);
  return gameDetail;
}

export function loadOffer(attributes){
  this.set('offer', attributes);
  return attributes;
}
