module EventSource::EventData
Public Class Methods
included(cls)
click to toggle source
# File lib/event_source/event_data.rb, line 3 def self.included(cls) cls.class_exec do include Schema::DataStructure attribute :id, String attribute :type, String attribute :data attribute :metadata def ===(other) type == other end end end
Public Instance Methods
===(other)
click to toggle source
# File lib/event_source/event_data.rb, line 12 def ===(other) type == other end