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