mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
16 lines
221 B
Ruby
16 lines
221 B
Ruby
class FetchFeedService
|
|
def call(account)
|
|
process_service.(http_client.get(account.remote_url), account)
|
|
end
|
|
|
|
private
|
|
|
|
def process_service
|
|
ProcessFeedService.new
|
|
end
|
|
|
|
def http_client
|
|
HTTP
|
|
end
|
|
end
|