DS.Snapshot#eachRelationship()

eachRelationship (callback, binding) Defined in addon/-private/system/snapshot.js:330 Iterates through all the relationships of the model, calling the passed function on each relationship. Example snapshot.eachRelationship(function(name, relationship) { // ... }); Parameters: callback Function the callback to execute binding [Object] the value to which the callback's `this` should be bound

DS.Snapshot#eachAttribute()

eachAttribute (callback, binding) Defined in addon/-private/system/snapshot.js:310 Iterates through all the attributes of the model, calling the passed function on each attribute. Example snapshot.eachAttribute(function(name, meta) { // ... }); Parameters: callback Function the callback to execute binding [Object] the value to which the callback's `this` should be bound

DS.Snapshot#changedAttributes()

changedAttributesObject Defined in addon/-private/system/snapshot.js:135 Returns all changed attributes and their old and new values. Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postModel.set('title', 'Ember.js rocks!'); postSnapshot.changedAttributes(); // => { title: ['Ember.js rocks', 'Ember.js rocks!'] } Returns: Object All changed attributes of the current snapshot

DS.Snapshot#belongsTo()

belongsTo (keyName, options) (DS.Snapshot|String|null|undefined) Defined in addon/-private/system/snapshot.js:161 Returns the current value of a belongsTo relationship. belongsTo takes an optional hash of options as a second parameter, currently supported options are: id: set to true if you only want the ID of the related record to be returned. Example // store.push('post', { id: 1, title: 'Hello World' }); // store.createRecord('comment', { body: 'Lorem ipsum', post: post }); commentSnaps

DS.Snapshot#attributes()

attributesObject Defined in addon/-private/system/snapshot.js:118 Returns all attributes and their corresponding values. Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postSnapshot.attributes(); // => { author: 'Tomster', title: 'Ember.js rocks' } Returns: Object All attributes of the current snapshot

DS.Snapshot#attr()

attr (keyName) Object Defined in addon/-private/system/snapshot.js:94 Returns the value of an attribute. Example // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' }); postSnapshot.attr('author'); // => 'Tomster' postSnapshot.attr('title'); // => 'Ember.js rocks' Note: Values are loaded eagerly and cached when the snapshot is created. Parameters: keyName String Returns: Object The attribute value or undefined

DS.Snapshot#adapterOptions

adapterOptions{Object} Defined in addon/-private/system/snapshot.js:33 A hash of adapter options

DS.Snapshot

DS.Snapshot Class PRIVATE Defined in: addon/-private/system/snapshot.js:10 Module: ember-data

DS.ServerError#errorsHashToArray()

errorsHashToArrayprivate Defined in addon/adapters/errors.js:168

DS.ServerError#errorsArrayToHash()

errorsArrayToHashprivate Defined in addon/adapters/errors.js:199