Interface: Record

Record

A database record.

Methods

getDocumentURL() → {String}

If this is a document record, this function returns the URL to the file pointed to by this record.
Returns:
Type
String

getDownloadURL() → {String}

If this is a document record, this function returns the download URL
Returns:
Type
String

getId() → {ID}

Returns the record's ID.
Returns:
- The ID of the record.
Type
ID

getModel() → {Model}

Returns the record's model
Returns:
Type
Model

getThumbnailURL(format) → {String}

TODO
Parameters:
Name Type Description
format String
Returns:
Type
String

getURL() → {String}

TODO
Returns:
Type
String

remove(opts)

Removes a record from the database.
Parameters:
Name Type Description
opts Object Configuration object
Properties
Name Type Description
onSuccess function Callback when the operation was successful.
onError function Callback when the operation resulted in an error.

save()

TODO

toJSON() → {String}

Creates a JSON string from the record.
Returns:
- The record in JSON format.
Type
String