Constructor
(abstract) new BaseEntity(connection, properties)
Creates an instance of this object.
Parameters:
Name | Type | Description |
---|---|---|
connection |
Connection | A Connection object representing an established connection to an openEO back-end. |
properties |
object |
- Source:
Methods
get(name) → {*}
Get a value from the additional data that is not part of the core model, i.e. from proprietary extensions.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the property. |
- Source:
Returns:
The value, which could be of any type.
- Type
- *
getAll() → {object}
Returns all data in the model.
- Source:
Returns:
- Type
- object
setAll(metadata) → {this}
Converts the data from an API response into data suitable for our JS client models.
Parameters:
Name | Type | Description |
---|---|---|
metadata |
object | JSON object originating from an API response. |
- Source:
Returns:
Returns the object itself.
- Type
- this