Fixing the coordinator selection

This commit is contained in:
Zoe Roux
2020-11-08 20:52:11 +01:00
parent 1f0241bb5b
commit 19ff9ff7fc
2 changed files with 15 additions and 0 deletions

View File

@@ -1,7 +1,16 @@
from autopipe import Coordinator
from autopipe.input import RssInput
class NotifyExample(Coordinator):
def __init__(self, url, mapper):
super().__init__()
self.url = url
self.mapper = mapper
@classmethod
def name(cls):
return "NotifyExample"
def get_input(self):
return RssInput(self.url, self.mapper)

View File

@@ -54,3 +54,9 @@ class Coordinator(ABC):
@abstractmethod
def name(cls):
raise NotImplementedError
@abstractmethod
def get_input(self):
raise NotImplementedError