From 470ff41caa783ef0db3f296b2397e6239120d45f Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sat, 23 Sep 2017 01:36:57 +0200 Subject: [PATCH] Add @raise to Fetcher.fetch_public method documentation --- lib/diaspora_federation/federation/fetcher.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/diaspora_federation/federation/fetcher.rb b/lib/diaspora_federation/federation/fetcher.rb index 089e51e..60ad8b4 100644 --- a/lib/diaspora_federation/federation/fetcher.rb +++ b/lib/diaspora_federation/federation/fetcher.rb @@ -6,6 +6,7 @@ module DiasporaFederation # @param [String] author the diaspora* ID of the author of the entity # @param [Symbol, String] entity_type snake_case version of the entity class # @param [String] guid guid of the entity to fetch + # @raise [NotFetchable] if something with the fetching failed def self.fetch_public(author, entity_type, guid) type = entity_name(entity_type).to_s raise "Already fetching ..." if fetching[type].include?(guid)