struct TrailDBEvent
- TrailDBEvent
- Struct
- Value
- Object
Overview
Wrapper struct for TrailDB events. Can be used lazily with #[] or all fields can be fetched with #to_h
Defined in:
traildb.crConstructors
Instance Method Summary
-
#[](fieldish : TrailDBField) : String
Return item value for a particular field
- #time
-
#to_h : TrailDBEventHash
Return the full event as a hash
Constructor Detail
def self.new(traildb : TrailDB, event : Pointer(LibTrailDB::TdbEvent), item : Pointer(TdbItem), parse_timestamp : Bool = true)
#