about summary refs log tree commit diff
path: root/app/services/fetch_feed_service.rb
blob: f18e9fc06b3f99ac8c5eb89888d459eb1848b91a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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

  private

  def process_service
    @process_service ||= ProcessFeedService.new
  end

  def http_client
    HTTP
  end
end