Merge branch '2107-update-documentation'
[arvados.git] / apps / workbench / app / models / collection.rb
index cdd148c0371a297de2f874511e6bf3512a7281ac..6bc55bde3d21199fda4c31fa3143800d9b03c026 100644 (file)
@@ -1,4 +1,5 @@
 class Collection < ArvadosBase
+
   def total_bytes
     if files
       tot = 0
@@ -20,4 +21,9 @@ class Collection < ArvadosBase
   def provenance
     $arvados_api_client.api "collections/#{self.uuid}/", "provenance"
   end
+
+  def used_by
+    $arvados_api_client.api "collections/#{self.uuid}/", "used_by"
+  end
+
 end