15 lines
398 B
Python
15 lines
398 B
Python
"""QuoteModel module for representing a quote with its body and author."""
|
|
|
|
|
|
class QuoteModel:
|
|
"""Quote model class."""
|
|
|
|
def __init__(self, body, author):
|
|
"""Initialize the QuoteModel object."""
|
|
self.body = body
|
|
self.author = author
|
|
|
|
def __repr__(self):
|
|
"""String representation of the QuoteModel object."""
|
|
return f"{self.body} - {self.author}"
|