Class: Talis::Feeds::Feed
Overview
Represents a feed, as a way of bringing back a collection of annotations.
Class Method Summary collapse
-
.find(request_id: new_req_id, target_uri:) ⇒ Array<Talis::Feeds::Annotation>
Returns a collection of annotations matching the provided target.
Methods inherited from Resource
Class Method Details
.find(request_id: new_req_id, target_uri:) ⇒ Array<Talis::Feeds::Annotation>
Returns a collection of annotations matching the provided target.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/talis/feeds/feed.rb', line 16 def find(request_id: new_req_id, target_uri:) md5_target_uri = Digest::MD5.hexdigest(target_uri) response = fetch_feed(request_id, md5_target_uri) begin build handle_response(response) rescue Talis::NotFoundError [] end rescue SocketError raise Talis::ServerCommunicationError end |