Class: UWDC::FileSec

Inherits:
Mets
  • Object
show all
Defined in:
lib/uwdc/file_sec.rb

Overview

Return the METS files

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

#filesObject



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

#nodesObject



4
5
6
# File 'lib/uwdc/file_sec.rb', line 4

def nodes
  @xml.nodes.xpath("//fileSec")
end