helper.</p>
<p>Let's assume we have a <code>Player</code> model that has <code>level</code> and <code>levelName</code>
attributes. We want to call <code>levelUp()</code> to increment the <code>level</code> and assign a
new <code>levelName</code> when the player reaches level 5.</p>
<blockquote>
  <p>You can follow along by generating your own model with <code>ember generate model player</code>.</p>
</blockquote>
<div class="filename javascript"><div class="ribbon"></div><span>app/models/player.js</span><pre