From 7e96992c7fef8f71a30b59d58f66335ba5c3a9cb Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sun, 29 May 2022 20:18:12 +0000 Subject: [PATCH] add Feed class --- rss.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rss.py b/rss.py index b309f20..3aa4060 100644 --- a/rss.py +++ b/rss.py @@ -5,7 +5,10 @@ class FeedItem(): pass class Feed(): - pass + def __init__(self, title: str, url: str, items: list) -> None: + self.title = title + self.url = url + self.items = items class RssReader(): def convert_to_FeedItem(self, item: dict) -> FeedItem: