e></pre></div>
<p>Attributes are used when turning the JSON payload returned from your
server into a record, and when serializing a record to save back to the
server after it has been modified.</p>
<p>You can use attributes like any other property, including from within <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get">getter functions</a>.</p>
<div class="filename javascript"><div class="ribbon"></div><span>app/models/person.js</span><pre class="language-javascript l