Skip to content
Kward Search API index

Class: Kward::PluginRegistry::TranscriptEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/kward/plugin_registry.rb

Overview

Read-only event passed to plugin transcript observers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



42
43
44
# File 'lib/kward/plugin_registry.rb', line 42

def payload
  @payload
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



42
43
44
# File 'lib/kward/plugin_registry.rb', line 42

def type
  @type
end

Instance Method Details

#to_hObject



43
44
45
# File 'lib/kward/plugin_registry.rb', line 43

def to_h
  { type: type, payload: payload }
end