Method: Libis::Tools::MetsFile#representation
- Defined in:
- lib/libis/tools/mets_file.rb
#representation(hash = {}) ⇒ Libis::Tools::MetsFile::Representation
Create a new representation. See Representation for supported Hash keys.
255 256 257 258 259 260 |
# File 'lib/libis/tools/mets_file.rb', line 255 def representation(hash = {}) rep = ::Libis::Tools::MetsFile::Representation.new rep.set_id get_id(::Libis::Tools::MetsFile::Representation) rep.set_from_hash hash @representations[rep.id] = rep end |