Resource.nucleus - idexlabs/idex.nucleus.core GitHub Wiki
Kind: global class
Creates a Nucleus Resource.
Param | Type | Default | Description |
---|---|---|---|
resourceType | String |
Undefined |
|
{Object | resourceStructure | ||
resourceAttributes | Object |
||
resourceMeta | Object |
||
authorUserID | String |
Example
const $resource = new NucleusResource();
Generates an attribute proxy, it will ensure that any property gets stringify as JSON.
Kind: static method of NucleusResource
Param | Type |
---|---|
object | Object |
Kind: global typedef
Properties
Name | Type |
---|---|
ID | String |
meta | Object |
meta.createdISOTime | String |
[meta.modifiedISOTime] | String |
[meta.originUserID] | String |
Creates a Nucleus Resource.
Param | Type | Default | Description |
---|---|---|---|
resourceType | String |
Undefined |
|
{Object | resourceStructure | ||
resourceAttributes | Object |
||
resourceMeta | Object |
||
authorUserID | String |
Example
const $resource = new NucleusResource();
Generates an attribute proxy, it will ensure that any property gets stringify as JSON.
Kind: static method of NucleusResource
Param | Type |
---|---|
object | Object |