added a couple more methods
This commit is contained in:
parent
0dc1f1b654
commit
8a0757c10e
1 changed files with 14 additions and 0 deletions
|
@ -55,6 +55,20 @@ module ScansIoTools
|
||||||
def filenames_for(study_name)
|
def filenames_for(study_name)
|
||||||
file_info(study_name).select do |file|
|
file_info(study_name).select do |file|
|
||||||
file['name']
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue