Class: Moab::VersionMetadataEntry
- Inherits:
-
Serializer::Serializable
- Object
- Serializer::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.
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 = {}) ⇒ VersionMetadataEntry
Returns a new instance of VersionMetadataEntry.
20 21 22 23 |
# File 'lib/moab/version_metadata_entry.rb', line 20 def initialize(opts = {}) @events = [] super(opts) end |
Instance Attribute Details
#content_changes ⇒ FileGroupDifference
Returns Summary of content file differences since previous version.
49 |
# File 'lib/moab/version_metadata_entry.rb', line 49 element :content_changes, FileGroupDifference, :tag => 'fileGroupDifference' |
#description ⇒ String
Returns A free text external description of why the version was created.
41 |
# File 'lib/moab/version_metadata_entry.rb', line 41 element :description, String |
#events ⇒ Array<VersionMetadataEvent>
Returns Array of events with timestamps that track lifecycle stages.
57 |
# File 'lib/moab/version_metadata_entry.rb', line 57 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
33 |
# File 'lib/moab/version_metadata_entry.rb', line 33 attribute :label, String |
#metadata_changes ⇒ FileGroupDifference
Returns Summary of metadata file differences since previous version.
53 |
# File 'lib/moab/version_metadata_entry.rb', line 53 element :metadata_changes, FileGroupDifference, :tag => 'fileGroupDifference' |
#note ⇒ String
Returns An internal annotation summarizing the changes (optional).
45 |
# File 'lib/moab/version_metadata_entry.rb', line 45 element :note, String |
#significance ⇒ String
Returns “major|minor|admin”.
37 |
# File 'lib/moab/version_metadata_entry.rb', line 37 attribute :significance, String |
#version_id ⇒ Integer
Returns The object version number (A sequential integer).
27 |
# File 'lib/moab/version_metadata_entry.rb', line 27 attribute :version_id, Integer, :tag => 'versionId', :key => true, :on_save => proc { |n| n.to_s } |