class Aquamarine::Metadata

Overview

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

Defined in:

aquamarine/metadata.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instantiates a new metadata object.


[View source]

Instance Method Detail

def [](key : Symbol) #

Data structure query method. Works just like a hash.

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


[View source]
def []=(key, value) #

Sets a value under a given key.

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


[View source]
def allowed_types #

Allowed data types for the data structure values.


[View source]
def each(&block) #

Enumerates the given block over the data structure elements.

@param &block [Proc] Block to execute


[View source]
def to_yaml(builder : YAML::Nodes::Builder) #

[View source]