Class: Moab::VersionMetadataEvent

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

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 = {}) ⇒ VersionMetadataEvent

Returns a new instance of VersionMetadataEvent.



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

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

Instance Attribute Details

#datetimeString

Returns The date and time of an event.

Returns:

  • (String)

    The date and time of an event



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

attribute :datetime, String

#typeString

Returns The type of event.

Returns:

  • (String)

    The type of event



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

attribute :type, String