Add @raise to Fetcher.fetch_public method documentation

This commit is contained in:
Benjamin Neff 2017-09-23 01:36:57 +02:00
parent 181d11d2f5
commit 470ff41caa
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -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)