Send Salmon interactions
This commit is contained in:
parent
10eb47a33e
commit
fa7868675d
15 changed files with 118 additions and 25 deletions
|
@ -1,4 +1,6 @@
|
|||
class FetchFeedService
|
||||
class FetchFeedService < BaseService
|
||||
# Fetch an account's feed and process it
|
||||
# @param [Account] account
|
||||
def call(account)
|
||||
process_service.(http_client.get(account.remote_url), account)
|
||||
end
|
||||
|
@ -6,7 +8,7 @@ class FetchFeedService
|
|||
private
|
||||
|
||||
def process_service
|
||||
ProcessFeedService.new
|
||||
@process_service ||= ProcessFeedService.new
|
||||
end
|
||||
|
||||
def http_client
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue