Update Exploring Near Earth Objects project and add Meme Generator project
This commit is contained in:
14
Meme_Generator/QuoteEngine/QuoteModel.py
Normal file
14
Meme_Generator/QuoteEngine/QuoteModel.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""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}"
|
||||
Reference in New Issue
Block a user