Constructor
new Observation(data)
Creates an Observation object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Observation | Object |
- Source:
Members
_id :string
Unique ID for the Observation
Type:
- string
- Default Value:
- ''
- Source:
claUnit :number
User's overall CLA unit at the time of the observation. Updated when the observation is edited.
Type:
- number
- Default Value:
- 1
- Source:
date :string
Date/time the Observation was created, as an ISO Date string (e.g., '2022-06-20T15:50:40.055Z')
Type:
- string
- Default Value:
- ''
- Source:
text :string
Text of the Observation
Type:
- string
- Default Value:
- ''
- Source:
title :string
Title of the Observation
Type:
- string
- Default Value:
- ''
- Source:
Methods
set(data) → {Observation}
Creates an updated Observation object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Observation | Object |
- Source:
Returns:
- Type
- Observation