struct TrailDBEvent

Overview

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

Defined in:

traildb.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(traildb : TrailDB, event : ::Pointer(LibTrailDB::TdbEvent), item : ::Pointer(TdbItem), parse_timestamp : Bool = true) #

[View source]

Instance Method Detail

def [](fieldish : TrailDBField) : String #

Return item value for a particular field


[View source]
def time #

[View source]
def to_h : TrailDBEventHash #

Return the full event as a hash


[View source]