CompletedTask¤
CompletedTask
dataclass
¤
Represents the completedTask element in an equipment register.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task
|
str
|
A description of the task that was completed. |
required |
due_date
|
date
|
The date that the maintenance task was due to be completed. |
required |
performed_by
|
str
|
The person or company that performed the maintenance task. |
required |
completed_date
|
date
|
The date that the maintenance task was completed. |
required |
completed_date
instance-attribute
¤
completed_date: date
The date that the maintenance task was completed.
due_date
instance-attribute
¤
due_date: date
The date that the maintenance task was due to be completed.
performed_by
instance-attribute
¤
performed_by: str
The person or company that performed the maintenance task.
from_xml
classmethod
¤
from_xml(element: Element[str]) -> CompletedTask
Convert an XML element into a CompletedTask instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
element
|
Element[str]
|
A completedTask XML element from an equipment register. |
required |
Returns:
Type | Description |
---|---|
CompletedTask
|
The CompletedTask instance. |
to_xml ¤
Convert the CompletedTask class into an XML element.
Returns:
Type | Description |
---|---|
Element[str]
|
The CompletedTask as an XML element. |