Move all index content into Recent and Help tabs.
[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 self.creatable?
17     false
18   end
19
20   def provenance
21     $arvados_api_client.api "collections/#{self.uuid}/", "provenance"
22   end
23 end