class

Aquamarine::Metadata

Inherits Reference < Object

Metadata is a data structure for storing domain event related metadata.

Constructors

new(data : Aquamarine::Metadata | Hash(Symbol, Int32 | String) = self)

Instantiates a new metadata object.

Source

Instance methods

[](key : Symbol)

Data structure query method. Works just like a hash.

@param key [Symbol] Key @return [] Value stored to given key

Source
[]=(key, value)

Sets a value under a given key.

@param key [Symbol] Key @param value [] Value to be stored to given key

Source
allowed_types

Allowed data types for the data structure values.

Source
each

Enumerates the given block over the data structure elements.

@param &block [Proc] Block to execute

Source
to_yaml(builder : YAML::Nodes::Builder)
Source