# DS.Transform documentation

**URL:** <https://discuss.emberjs.com/t/ds-transform-documentation/5739>\
**Category:** Ember Data\
**Created:** [June 23, 2014, 5:05pm UTC](https://discuss.emberjs.com/t/ds-transform-documentation/5739 "2014-06-23T17:05:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lennon\_p](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/lennon_p/32/15613_2.png) [@lennon\_p](https://discuss.emberjs.com/u/lennon_p)\
**Post date:** [June 23, 2014, 5:05pm UTC](https://discuss.emberjs.com/t/ds-transform-documentation/5739/1 "2014-06-23T17:05:20Z")

</div>

Looking at the documentation on transforms and assuming there is a copy error: [Transform - 4.6 - Ember API Documentation](http://emberjs.com/api/data/classes/DS.Transform.html) The “example” and “usage” blocks don’t match:

**Example**

```
// Converts centigrade in the JSON to fahrenheit in the app
App.TemperatureTransform = DS.Transform.extend({
  deserialize: function(serialized) {
    return (serialized * 1.8) + 32;
  },
  serialize: function(deserialized) {
    return (deserialized - 32) / 1.8;
  }
});

```

**Usage**

```
var attr = DS.attr;
App.Requirement = DS.Model.extend({
  name: attr('string'),
  optionsArray: attr('raw')
});

```

Is the usage block supposed to be demonstrating attr(‘temperature-transform’)?

The old documentation was apparently [javascript - How to represent arrays within ember-data models? - Stack Overflow](http://stackoverflow.com/a/14842514/128508). Perhaps the new usage block is not there.
