Class: GenericFile
Instance Attribute Summary collapse
Instance Method Summary
collapse
#embargo_release_date, #embargo_release_date=
#set_visibility
#authenticated_only_access?, #open_access?, #open_access_with_embargo_release_date?, #private_access?, #under_embargo?
Instance Attribute Details
#file ⇒ Object
Returns the value of attribute file.
18
19
20
|
# File 'app/repository_models/generic_file.rb', line 18
def file
@file
end
|
#version ⇒ Object
Returns the value of attribute version.
18
19
20
|
# File 'app/repository_models/generic_file.rb', line 18
def version
@version
end
|
Instance Method Details
#current_version_id ⇒ Object
32
33
34
|
# File 'app/repository_models/generic_file.rb', line 32
def current_version_id
content.latest_version.versionID
end
|
#filename ⇒ Object
20
21
22
|
# File 'app/repository_models/generic_file.rb', line 20
def filename
content.label
end
|
#human_readable_type ⇒ Object
36
37
38
|
# File 'app/repository_models/generic_file.rb', line 36
def human_readable_type
self.class.to_s.demodulize.titleize
end
|
#to_s ⇒ Object
24
25
26
|
# File 'app/repository_models/generic_file.rb', line 24
def to_s
title || label || "No Title"
end
|
#versions ⇒ Object
28
29
30
|
# File 'app/repository_models/generic_file.rb', line 28
def versions
content.versions
end
|