Class: Libis::Tools::MetsFile::Representation
- Includes:
- IdContainer
- Defined in:
- lib/libis/tools/mets_file.rb
Instance Attribute Summary collapse
-
#dc_record ⇒ Object
Returns the value of attribute dc_record.
-
#label ⇒ Object
Returns the value of attribute label.
-
#preservation_type ⇒ Object
Returns the value of attribute preservation_type.
-
#usage_type ⇒ Object
Returns the value of attribute usage_type.
Instance Method Summary collapse
Methods included from IdContainer
Instance Attribute Details
#dc_record ⇒ Object
Returns the value of attribute dc_record.
44 45 46 |
# File 'lib/libis/tools/mets_file.rb', line 44 def dc_record @dc_record end |
#label ⇒ Object
Returns the value of attribute label.
44 45 46 |
# File 'lib/libis/tools/mets_file.rb', line 44 def label @label end |
#preservation_type ⇒ Object
Returns the value of attribute preservation_type.
44 45 46 |
# File 'lib/libis/tools/mets_file.rb', line 44 def preservation_type @preservation_type end |
#usage_type ⇒ Object
Returns the value of attribute usage_type.
44 45 46 |
# File 'lib/libis/tools/mets_file.rb', line 44 def usage_type @usage_type end |
Instance Method Details
#amd ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/libis/tools/mets_file.rb', line 50 def amd dnx = {} tech_data = [] data = { preservationType: preservation_type, usageType: usage_type, # RevisionNumber: 1, # DigitalOriginal: true, }.cleanup tech_data << TechGeneralRep.new(data) unless data.empty? dnx[:tech] = tech_data unless tech_data.empty? dnx end |
#xml_id ⇒ Object
46 47 48 |
# File 'lib/libis/tools/mets_file.rb', line 46 def xml_id "rep#{id}" end |