2024-02-02 12:43:09 -05:00
|
|
|
class Version:
|
2024-02-03 13:01:51 -05:00
|
|
|
# pylint disable=too-many-instance-attributes
|
2024-02-02 12:43:09 -05:00
|
|
|
def __init__(
|
2024-02-02 12:55:19 -05:00
|
|
|
self,
|
|
|
|
bible_id,
|
|
|
|
abbreviation,
|
|
|
|
language,
|
|
|
|
abbreviationLocal,
|
|
|
|
languageLocal,
|
2024-02-02 13:09:46 -05:00
|
|
|
description,
|
|
|
|
descriptionLocal,
|
2024-02-02 12:55:19 -05:00
|
|
|
version_copyright,
|
2024-02-02 12:43:09 -05:00
|
|
|
):
|
2024-02-02 12:55:19 -05:00
|
|
|
self.bible_id = bible_id
|
2024-02-02 12:43:09 -05:00
|
|
|
self.abbreviation = abbreviation
|
|
|
|
self.language = language
|
|
|
|
self.abbreviationLocal = abbreviationLocal
|
|
|
|
self.languageLocal = languageLocal
|
2024-02-02 13:09:46 -05:00
|
|
|
self.description = description
|
|
|
|
self.descriptionLocal = descriptionLocal
|
2024-02-02 12:55:19 -05:00
|
|
|
self.copyright = version_copyright
|
2024-02-02 12:43:09 -05:00
|
|
|
|
|
|
|
def __str__(self):
|
|
|
|
return self.abbreviationLocal
|
2024-02-02 12:55:19 -05:00
|
|
|
|
|
|
|
def __repr__(self):
|
2024-02-02 13:09:46 -05:00
|
|
|
return f'bible.models.Version("{self.bible_id}", "{self.abbreviation}", "{self.language}", "{self.abbreviationLocal}", "{self.languageLocal}", "{self.description}", "{self.descriptionLocal}", "{self.copyright}")'
|