Merge commit '2728f59' into 1977-provenance-report
[arvados.git] / apps / workbench / app / models / collection.rb
1 class Collection < ArvadosBase
2   def total_bytes
3     if files
4       tot = 0
5       files.each do |file|
6         tot += file[2]
7       end
8       tot
9     end
10   end
11
12   def attribute_editable?(attr)
13     false
14   end
15
16   def provenance
17     $arvados_api_client.api "collections/#{self.uuid}/", "provenance"
18   end
19 end