about summary refs log tree commit diff
path: root/app/services/fetch_entry_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-24 12:57:29 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-24 12:57:29 +0100
commitfa7868675d0952f8e4e1aa2f6b77586bb56de2c1 (patch)
tree33b79c306943ade9c5bc49a06cfedf1e2aee231a /app/services/fetch_entry_service.rb
parent10eb47a33e2f0c7f0eba5302319c4321db41294c (diff)
Send Salmon interactions
Diffstat (limited to 'app/services/fetch_entry_service.rb')
-rw-r--r--app/services/fetch_entry_service.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/services/fetch_entry_service.rb b/app/services/fetch_entry_service.rb
new file mode 100644
index 000000000..c4a5460e9
--- /dev/null
+++ b/app/services/fetch_entry_service.rb
@@ -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