DS.Transform#serialize()

serialize (deserialized, options) Defined in addon/transform.js:70 When given a deserialized value from a record attribute this method must return the serialized value. Example serialize: function(deserialized, options) { return Ember.isEmpty(deserialized) ? null : Number(deserialized); } Parameters: deserialized The deserialized value options hash of options passed to `DS.attr` Returns: The serialized value

DS.Transform#deserialize()

deserialize (serialized, options) Defined in addon/transform.js:89 When given a serialize value from a JSON object this method must return the deserialized value for the record attribute. Example deserialize: function(serialized, options) { return empty(serialized) ? null : Number(serialized); } Parameters: serialized The serialized value options hash of options passed to `DS.attr` Returns: The deserialized value

DS.Transform

DS.Transform Class Defined in: addon/transform.js:3 Module: ember-data The DS.Transform class is used to serialize and deserialize model attributes when they are saved or loaded from an adapter. Subclassing DS.Transform is useful for creating custom attributes. All subclasses of DS.Transform must implement a serialize and a deserialize method. Example app/transforms/temperature.js import DS from 'ember-data'; // Converts centigrade in the JSON to fahrenheit in the app export default DS.Tr

DS.TimeoutError

DS.TimeoutError Class Defined in: addon/adapters/errors.js:119 Module: ember-data

DS.StringTransform

DS.StringTransform Class Extends: DS.Transform Defined in: addon/-private/transforms/string.js:6 Module: ember-data The DS.StringTransform class is used to serialize and deserialize string attributes on Ember Data record objects. This transform is used when string is passed as the type parameter to the DS.attr function. Usage app/models/user.js import DS from 'ember-data'; export default DS.Model.extend({ isAdmin: DS.attr('boolean'), name: DS.attr('string'), email: DS.attr('string')

DS.String#singularize()

singularize Defined in node_modules/ember-inflector/addon/lib/ext/string.js:18 See {{#crossLink "Ember.String/singularize"}}{{/crossLink}}

DS.String#pluralize()

pluralize Defined in node_modules/ember-inflector/addon/lib/ext/string.js:8 See {{#crossLink "Ember.String/pluralize"}}{{/crossLink}}

DS.String

DS.String Class Module: ember-data

DS.Store#_load()

_load (type, data) private Defined in addon/-private/system/store.js:1864 This internal method is used by push. Parameters: type (String|DS.Model) data Object

DS.Store#_generateId()

_generateId (modelName, properties) Stringprivate Defined in addon/-private/system/store.js:361 If possible, this method asks the adapter to generate an ID for a newly created record. Parameters: modelName String properties Object from the new record Returns: String if the adapter can generate one, an ID