Class: UWDC::FileSec
- Inherits:
-
Mets
- Object
- Mets
- UWDC::FileSec
show all
- Defined in:
- lib/uwdc/file_sec.rb
Overview
Instance Attribute Summary
Attributes inherited from Mets
#id, #xml
Instance Method Summary
collapse
Methods inherited from Mets
#display, #dublin_core, #file_sec, #initialize, #mods, #origin, #rels_ext, #struct_map, #to_json, #to_ruby, #to_xml
Constructor Details
This class inherits a constructor from UWDC::Mets
Instance Method Details
#files ⇒ Object
8
9
10
|
# File 'lib/uwdc/file_sec.rb', line 8
def files
nodes.xpath("//fileGrp/file").inject([]){|result, file| result << FileAsset.new(file)}
end
|
#nodes ⇒ Object
4
5
6
|
# File 'lib/uwdc/file_sec.rb', line 4
def nodes
@xml.nodes.xpath("//fileSec")
end
|