Class: Moab::VersionMetadata
- Inherits:
-
Manifest
- Object
- Manifest
- Moab::VersionMetadata
- Includes:
- HappyMapper
- Defined in:
- lib/moab/version_metadata.rb
Overview
Note:
Copyright © 2012 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved. See LICENSE for details.
The descriptive information about a digital object’s collection of versions
Data Model
-
VersionMetadata = descriptive information about a digital object’s versions
-
VersionMetadataEntry [1..*] = attributes of a digital object version
-
VersionMetadataEvent [1..*] = object version lifecycle events with timestamps
-
-
Instance Attribute Summary collapse
-
#digital_object_id ⇒ String
The digital object identifier.
-
#versions ⇒ Array<VersionMetadataEntry>
An array of version metadata entries, one per version.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ VersionMetadata
constructor
A new instance of VersionMetadata.
Constructor Details
#initialize(opts = {}) ⇒ VersionMetadata
Returns a new instance of VersionMetadata.
23 24 25 26 |
# File 'lib/moab/version_metadata.rb', line 23 def initialize(opts={}) @versions = Array.new super(opts) end |
Instance Attribute Details
#digital_object_id ⇒ String
Returns The digital object identifier.
30 |
# File 'lib/moab/version_metadata.rb', line 30 attribute :digital_object_id, String, :tag => 'objectId' |
#versions ⇒ Array<VersionMetadataEntry>
Returns An array of version metadata entries, one per version.
34 |
# File 'lib/moab/version_metadata.rb', line 34 has_many :versions, VersionMetadataEntry, :tag => 'version' |