Class: Moab::VersionMetadataEvent

Inherits:
Serializable
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/moab/version_metadata_event.rb

Overview

Note:

Copyright © 2012 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved. See LICENSE for details.

A container element to record object version lifecycle events with timestamps

Data Model

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ VersionMetadataEvent

Returns a new instance of VersionMetadataEvent.



24
25
26
# File 'lib/moab/version_metadata_event.rb', line 24

def initialize(opts={})
  super(opts)
end

Instance Attribute Details

#datetimeTime

Returns The date and time of an event.

Returns:

  • (Time)

    The date and time of an event



35
# File 'lib/moab/version_metadata_event.rb', line 35

attribute :datetime, Time, :on_save => Proc.new {|t| t.to_s}

#typeString

Returns The type of event.

Returns:

  • (String)

    The type of event



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

attribute :type, String