X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f1d8f4de37ff66b21330ffe500c9725620ec9614..7db862a48062c6086ea8a6787149afa7d66b1919:/apps/workbench/app/models/collection.rb diff --git a/apps/workbench/app/models/collection.rb b/apps/workbench/app/models/collection.rb index cdd148c037..6bc55bde3d 100644 --- a/apps/workbench/app/models/collection.rb +++ b/apps/workbench/app/models/collection.rb @@ -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