summaryrefslogtreecommitdiff
path: root/entities/person.py
blob: b9e9d781495aab95699b622609a6a6394a542179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from entities.basic_entity import BasicEntity


class Person(BasicEntity):
    def __init__(self, name, date_of_birth, name_in_langs):
        """

        :param name:
        :param date_of_birth:
        :param name_in_langs: Mapping of the persons's name in various languages, as a dictionary. For example:
            {
                "latin": "George"
                "heb": "[george in hebrew]"
            }
        """
        self.name = name
        self.date_of_birth = date_of_birth
        self.name_in_langs = name_in_langs