1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class Link < ArvadosBase
8 def self.by_tail(t, opts={})
9 where(opts.merge :tail_uuid => t.uuid)
13 self.class.resource_class_for_uuid(head_uuid).default_name rescue super
16 def self.permissions_for(thing)
17 if thing.respond_to? :uuid
22 result = arvados_api_client.api("permissions", "/#{uuid}")
23 arvados_api_client.unpack_api_response(result)