Files
Udacity_Nanodegree_Intermed…/Meme_Generator/QuoteEngine/QuoteModel.py

15 lines
400 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):
"""Return a string representation of the QuoteModel."""
return f"{self.body} - {self.author}"