Class: Evostream::Event
- Inherits:
-
Object
- Object
- Evostream::Event
- Defined in:
- lib/evostream/event.rb
Overview
Reacts to event
Constant Summary collapse
- EVENTS =
Evostream::Events::Event.descendants
Instance Method Summary collapse
- #execute_action ⇒ Object
-
#initialize(type, payload) ⇒ Event
constructor
A new instance of Event.
Constructor Details
#initialize(type, payload) ⇒ Event
Returns a new instance of Event.
39 40 41 42 |
# File 'lib/evostream/event.rb', line 39 def initialize(type, payload) @payload = payload @model = type.sub(/^(\w)/, &:capitalize) end |