Class: SimpleAcp::Models::GenericEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/simple_acp/models/events.rb

Overview

Generic event

Instance Attribute Summary

Attributes inherited from Event

#type

Instance Method Summary collapse

Methods inherited from Event

#sse_format

Methods inherited from Base

#==, attribute, attributes, from_hash, #hash, own_attributes, #to_h, #to_json

Constructor Details

#initialize(**kwargs) ⇒ GenericEvent

Returns a new instance of GenericEvent.



190
191
192
193
# File 'lib/simple_acp/models/events.rb', line 190

def initialize(**kwargs)
  kwargs[:type] = Types::EventType::GENERIC
  super
end