Class: ActiveFedora::FilesHash
Instance Attribute Summary
#base
Instance Method Summary
collapse
#[], #[]=, #association, #changed, #each, #each_value, #freeze, #key?, #merge, #select, #values
Constructor Details
#initialize(model) ⇒ FilesHash
3
4
5
|
# File 'lib/active_fedora/files_hash.rb', line 3
def initialize(model)
@base = model
end
|
Instance Method Details
#keys ⇒ Object
11
12
13
|
# File 'lib/active_fedora/files_hash.rb', line 11
def keys
reflections.keys + @base.undeclared_files
end
|
#reflections ⇒ Object
7
8
9
|
# File 'lib/active_fedora/files_hash.rb', line 7
def reflections
@base.class.child_resource_reflections
end
|