abstract class Caridina::Events::Event

Overview

Base type representing an event.

It has a class method #from_json that can be used to deserialize an event.  You can then match the returned event type against known types.

If the event is unknown, it returns nil.

Included Modules

Direct Known Subclasses

Defined in:

events/base.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def type : String #

[View source]