From 9f329cb4b577347244e046c79388046831693237 Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Sun, 8 Aug 2021 16:47:25 -0400
Subject: [PATCH] Fixing event constructor

---
 lib/aethyr/core/event.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/aethyr/core/event.rb b/lib/aethyr/core/event.rb
index 21cfb35..376d782 100644
--- a/lib/aethyr/core/event.rb
+++ b/lib/aethyr/core/event.rb
@@ -61,8 +61,9 @@ class Event < OpenStruct
   #name must be a symbol which is the same as the module which handles the event.
   #
   #An optional hash can be passed in as well to define attributes.
-  def initialize(**args)
-    super args
+  def initialize(type, **kwargs)
+    kwargs[:type] = type
+    super kwargs
   end
 
   #Retrieve an attribute.
-- 
GitLab