added a couple more methods
This commit is contained in:
parent
0dc1f1b654
commit
8a0757c10e
1 changed files with 14 additions and 0 deletions
|
@ -55,9 +55,23 @@ module ScansIoTools
|
|||
def filenames_for(study_name)
|
||||
file_info(study_name).select do |file|
|
||||
file['name']
|
||||
end.map do |file|
|
||||
file['name']
|
||||
end
|
||||
end
|
||||
|
||||
def fingerprints_for(study_name)
|
||||
file_info(study_name).map do |file|
|
||||
file['fingerprint']
|
||||
end
|
||||
end
|
||||
|
||||
def file_urls_for(study_name)
|
||||
file_info(study_name).map do |file|
|
||||
file['name']
|
||||
end
|
||||
end
|
||||
|
||||
def size_for(study_name)
|
||||
if file_info(study_name).count >= 2
|
||||
file_info(study_name).select {|name| name['size']}
|
||||
|
|
Loading…
Add table
Reference in a new issue