Class: Moab::VersionMetadata

Inherits:
Manifest
  • Object
show all
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

Examples:

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idString

Returns The digital object identifier.

Returns:

  • (String)

    The digital object identifier



30
# File 'lib/moab/version_metadata.rb', line 30

attribute :digital_object_id, String, :tag => 'objectId'

#versionsArray<VersionMetadataEntry>

Returns An array of version metadata entries, one per version.

Returns:



34
# File 'lib/moab/version_metadata.rb', line 34

has_many :versions, VersionMetadataEntry, :tag => 'version'