DS.SnapshotRecordArray#type

type{DS.Model} Defined in addon/-private/system/snapshot-record-array.js:34 The type of the underlying records for the snapshots in the array, as a DS.Model

DS.SnapshotRecordArray#snapshots()

snapshotsArray Defined in addon/-private/system/snapshot-record-array.js:56 Get snapshots of the underlying record array Returns: Array Array of snapshots

DS.Snapshot#record

record{DS.Model} Defined in addon/-private/system/snapshot.js:63 The underlying record for this snapshot. Can be used to access methods and properties defined on the record. Example var json = snapshot.record.toJSON();

DS.Snapshot#modelName

modelName{String} Defined in addon/-private/system/snapshot.js:86 The name of the type of the underlying record for this snapshot, as a string.

DS.SnapshotRecordArray

DS.SnapshotRecordArray Class PRIVATE Defined in: addon/-private/system/snapshot-record-array.js:5 Module: ember-data

DS.Snapshot#type

type{DS.Model} Defined in addon/-private/system/snapshot.js:78 The type of the underlying record for this snapshot, as a DS.Model.

DS.SnapshotRecordArray#adapterOptions

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

DS.Snapshot#serialize()

serialize (options) Object Defined in addon/-private/system/snapshot.js:350 Parameters: options Object Returns: Object an object whose values are primitive JSON values only

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