projects
/
arvados.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'master' into 2257-inequality-conditions
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
collection.rb
1
class Collection < ArvadosBase
2
3
def total_bytes
4
if files
5
tot = 0
6
files.each do |file|
7
tot += file[2]
8
end
9
tot
10
end
11
end
12
13
def attribute_editable?(attr)
14
false
15
end
16
17
def self.creatable?
18
false
19
end
20
21
def provenance
22
$arvados_api_client.api "collections/#{self.uuid}/", "provenance"
23
end
24
25
def used_by
26
$arvados_api_client.api "collections/#{self.uuid}/", "used_by"
27
end
28
29
end