hometown/app/services/fetch_entry_service.rb

17 lines
339 B
Ruby
Raw Normal View History

2016-02-24 11:57:29 +00:00
class FetchEntryService < BaseService
# Knowing nothing but the URL of a remote status, create a local representation of it and return it
# @param [String] url Atom URL
# @return [Status]
def call(url)
body = http_client.get(url)
xml = Nokogiri::XML(body)
# todo
end
private
def http_client
HTTP
end
end