Ejemplo n.º 1
0
class OffersFeeder(object):
    def __init__(self):
        self.downloader_ctrl = DownloaderController()
        self.saver = Saver()

    def feed(self):
        offers = self.downloader_ctrl.get_offers()
        self.saver.save_offers(offers)
Ejemplo n.º 2
0
def download_offers():
    downloader_ctrl = DownloaderController()
    saver = Saver()
    offers = downloader_ctrl.get_offers()
    saver.save_offers(offers)
Ejemplo n.º 3
0
 def __init__(self):
     self.downloader_ctrl = DownloaderController()
     self.saver = Saver()