struct

Arcana::Events::Event

Inherits Struct < Value < Object

A single recorded event.

Constructors

from_json(raw : String) : self
Source
from_json_any(parsed : JSON::Any) : self
Source
new(type : String, subject : String, object : String | Nil = nil, correlation_id : String | Nil = nil, metadata : Hash(String, JSON::Any) | Nil = nil, id : String = Random::Secure.hex(8), timestamp : Time = Time.utc)
Source

Instance methods

correlation_id
Source
correlation_id=(correlation_id : String | Nil)
Source
id=(id : String)
Source
metadata
Source
metadata=(metadata : Hash(String, JSON::Any) | Nil)
Source
object
Source
object=(object : String | Nil)
Source
subject
Source
subject=(subject : String)
Source
timestamp
Source
timestamp=(timestamp : Time)
Source
to_json(json : JSON::Builder) : Nil
Source
type
Source
type=(type : String)
Source