Class: Moab::VersionMetadataEntry
- Inherits:
-
Serializable
- Object
- Serializable
- Moab::VersionMetadataEntry
- Includes:
- HappyMapper
- Defined in:
- lib/moab/version_metadata_entry.rb
Overview
Copyright © 2012 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved. See LICENSE for details.
The descriptive attributes of a digital object version.
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
-
#content_changes ⇒ FileGroupDifference
Summary of content file differences since previous version.
-
#description ⇒ String
A free text external description of why the version was created.
-
#events ⇒ Array<VersionMetadataEvent>
Array of events with timestamps that track lifecycle stages.
-
#label ⇒ String
second digit for minor revisions, and third for admin? e.g., 1.0, 1.1, 2.0, 2.0.1 etc.
-
#metadata_changes ⇒ FileGroupDifference
Summary of metadata file differences since previous version.
-
#note ⇒ String
An internal annotation summarizing the changes (optional).
-
#significance ⇒ String
“major|minor|admin”.
-
#version_id ⇒ Integer
The object version number (A sequential integer).
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ VersionMetadataEntry
constructor
A new instance of VersionMetadataEntry.
Constructor Details
#initialize(opts = {}) ⇒ VersionMetadataEntry
Returns a new instance of VersionMetadataEntry.
22 23 24 25 |
# File 'lib/moab/version_metadata_entry.rb', line 22 def initialize(opts={}) @events = Array.new super(opts) end |
Instance Attribute Details
#content_changes ⇒ FileGroupDifference
Returns Summary of content file differences since previous version.
51 |
# File 'lib/moab/version_metadata_entry.rb', line 51 element :content_changes, FileGroupDifference, :tag => 'fileGroupDifference' |
#description ⇒ String
Returns A free text external description of why the version was created.
43 |
# File 'lib/moab/version_metadata_entry.rb', line 43 element :description, String |
#events ⇒ Array<VersionMetadataEvent>
Returns Array of events with timestamps that track lifecycle stages.
59 |
# File 'lib/moab/version_metadata_entry.rb', line 59 has_many :events, VersionMetadataEvent, :tag => 'event' |
#label ⇒ String
second digit for minor revisions, and third for admin? e.g., 1.0, 1.1, 2.0, 2.0.1 etc. This should be dynamically derivable across the set of versions
35 |
# File 'lib/moab/version_metadata_entry.rb', line 35 attribute :label, String |
#metadata_changes ⇒ FileGroupDifference
Returns Summary of metadata file differences since previous version.
55 |
# File 'lib/moab/version_metadata_entry.rb', line 55 element :metadata_changes, FileGroupDifference, :tag => 'fileGroupDifference' |
#note ⇒ String
Returns An internal annotation summarizing the changes (optional).
47 |
# File 'lib/moab/version_metadata_entry.rb', line 47 element :note, String |
#significance ⇒ String
Returns “major|minor|admin”.
39 |
# File 'lib/moab/version_metadata_entry.rb', line 39 attribute :significance, String |
#version_id ⇒ Integer
Returns The object version number (A sequential integer).
29 |
# File 'lib/moab/version_metadata_entry.rb', line 29 attribute :version_id, Integer, :tag => 'versionId', :key => true, :on_save => Proc.new {|n| n.to_s} |