This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-02-20 22:53:20 +01:00
|
|
|
class FetchFeedService
|
|
|
|
def call(account)
|
2016-02-22 16:00:20 +01:00
|
|
|
process_service.(http_client.get(account.remote_url), account)
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def process_service
|
|
|
|
ProcessFeedService.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def http_client
|
|
|
|
HTTP
|
2016-02-20 22:53:20 +01:00
|
|
|
end
|
|
|
|
end
|