Skip to content

Commit

Permalink
utils: add LOMRecordData class
Browse files Browse the repository at this point in the history
  • Loading branch information
utnapischtim committed Jun 21, 2024
1 parent a9028b2 commit 91f6210
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions invenio_records_lom/utils/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@
)


class LOMRecordData:
"""LOM record data."""

def __init__(
self,
resource_type=None,
pids=None,
metadata=None,
**kwargs: dict,
) -> None:
"""Construct."""
self.resource_type = resource_type
self.pids = pids
self.metadata = (
metadata if not isinstance(metadata, LOMMetadata) else LOMMetadata(metadata)
)
self.kwargs = kwargs


class BaseLOMMetadata:
"""Base LOM Metadata."""

Expand Down

0 comments on commit 91f6210

Please sign in to comment.