Class: Kward::PluginRegistry::TranscriptEvent
- Inherits:
-
Struct
- Object
- Struct
- Kward::PluginRegistry::TranscriptEvent
- Defined in:
- lib/kward/plugin_registry.rb
Overview
Read-only event passed to plugin transcript observers.
Instance Attribute Summary collapse
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#payload ⇒ Object
Returns the value of attribute payload
21 22 23 |
# File 'lib/kward/plugin_registry.rb', line 21 def payload @payload end |
#type ⇒ Object
Returns the value of attribute type
21 22 23 |
# File 'lib/kward/plugin_registry.rb', line 21 def type @type end |
Instance Method Details
#to_h ⇒ Object
22 23 24 |
# File 'lib/kward/plugin_registry.rb', line 22 def to_h { type: type, payload: payload } end |