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.

16 lines
339 B

  1. class FetchEntryService < BaseService
  2. # Knowing nothing but the URL of a remote status, create a local representation of it and return it
  3. # @param [String] url Atom URL
  4. # @return [Status]
  5. def call(url)
  6. body = http_client.get(url)
  7. xml = Nokogiri::XML(body)
  8. # todo
  9. end
  10. private
  11. def http_client
  12. HTTP
  13. end
  14. end