You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
328 B

8 years ago
8 years ago
  1. class FetchFeedService < BaseService
  2. # Fetch an account's feed and process it
  3. # @param [Account] account
  4. def call(account)
  5. process_service.(http_client.get(account.remote_url), account)
  6. end
  7. private
  8. def process_service
  9. @process_service ||= ProcessFeedService.new
  10. end
  11. def http_client
  12. HTTP
  13. end
  14. end