Category

Category groups unit into what they represent.
e.g. Temperature, Distance, Speed, Pressure, ...

Attributes

NameTypeDescription
category_iduuid.UUIDTechnical id of the category.
namestrCategory name.

Methods

api_id()

return current object id on Web API format.

endpoint()

return endpoint name used to contact backend.

from_json()

load the object from a dict originating of a JSON format.

NameTypeDefaultDescription
objobject to load information from.

set_id()

specify the id_value neutrally

NameTypeDefaultDescription
id_value

return:

to_json()

transform current object into a dict that could be JSONIFY.

return: dumpable dict.