Send Salmon interactions
This commit is contained in:
parent
10eb47a33e
commit
fa7868675d
15 changed files with 118 additions and 25 deletions
16
app/services/fetch_entry_service.rb
Normal file
16
app/services/fetch_entry_service.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue