Class: Libis::Tools::MetsFile::Map

Inherits:
Object
  • Object
show all
Includes:
MetsObject
Defined in:
lib/libis/tools/mets_objects.rb

Overview

Container class for creating a structmap in the METS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MetsObject

#id, #initialize, #set_from_hash, #set_id, #to_s

Instance Attribute Details

#divObject

The top division in the structmap



534
535
536
# File 'lib/libis/tools/mets_objects.rb', line 534

def div
  @div
end

#is_logicalObject

Is the structmap Logical (true) or Physical(false)?



536
537
538
# File 'lib/libis/tools/mets_objects.rb', line 536

def is_logical
  @is_logical
end

#representationObject

The representation this structmap is for



532
533
534
# File 'lib/libis/tools/mets_objects.rb', line 532

def representation
  @representation
end

Instance Method Details

#xml_idObject

The id that will be used in the XML file to reference this structmap.



539
540
541
# File 'lib/libis/tools/mets_objects.rb', line 539

def xml_id
  "smap-#{@id}"
end