struct

TrailDBEvent

Inherits Struct / Value / Object

Wrapper struct for TrailDB events. Can be used lazily with #[] or all fields can be fetched with #to_h

Constructors

new(traildb : TrailDB, event : Pointer(LibTrailDB::TdbEvent), item : Pointer(TdbItem), parse_timestamp : Bool = true)
Source

Instance methods

[](fieldish : TrailDBField) : String

Return item value for a particular field

Source
time
Source
to_h

Return the full event as a hash

Source