Class: Moab::VersionMetadata

Inherits:
Serializer::Manifest 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

Methods inherited from Serializer::Manifest

read_xml_file, write_xml_file, #write_xml_file, xml_filename, xml_pathname, xml_pathname_exist?

Methods inherited from Serializer::Serializable

#array_to_hash, deep_diff, #diff, #key, #key_name, #summary, #to_hash, #to_json, #to_yaml, #variable_names, #variables

Constructor Details

#initialize(opts = {}) ⇒ VersionMetadata

Returns a new instance of VersionMetadata.


21
22
23
24
# File 'lib/moab/version_metadata.rb', line 21

def initialize(opts = {})
  @versions = []
  super(opts)
end

Instance Attribute Details

#digital_object_idString

Returns The digital object identifier.

Returns:

  • (String)

    The digital object identifier


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

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

#versionsArray<VersionMetadataEntry>

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

Returns:


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

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