The resource object from the API.
Whether or not the resource exists on the server.
The time at which the model's data was last updated. Watching the value of this property is a fast way to retain/cache a subtree if data hasn't changed.
The data store that this resource should be persisted to.
Construct a path to the API endpoint for this resource.
Get one of the model's attributes.
Send a request to delete the resource.
Data to send along with the DELETE request.
Get the model's ID.
Merge new attributes into this model locally.
The attributes to merge.
Merge new data into this model locally.
A resource object to merge into this model
Merge new attributes into this model, both locally and with persistence.
The attributes to save. If a 'relationships' key exists, it will be extracted and relationships will also be saved.
Generate a function which returns the value of the given attribute.
Generate a function which returns the value of the given attribute.
Get a resource identifier object for the given model.
Generate a function which returns the value of the given has-many relationship.
false if no information about the relationship exists; an array if it does, containing models if they have been loaded, and undefined for those that have not.
Generate a function which returns the value of the given has-many relationship.
false if no information about the relationship exists; an array if it does, containing models if they have been loaded, and undefined for those that have not.
Generate a function which returns the value of the given has-one relationship.
false if no information about the relationship exists; undefined if the relationship exists but the model has not been loaded; or the model if it has been loaded.
Generate a function which returns the value of the given has-one relationship.
false if no information about the relationship exists; undefined if the relationship exists but the model has not been loaded; or the model if it has been loaded.
Generated using TypeDoc version 0.22.10
A resource object from the API.