Skip to content
Kward Search API index

Class: Kward::PluginRegistry::TranscriptEvent

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

Overview

Read-only event passed to plugin transcript observers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#payload ⇒ Object

Returns the value of attribute payload

Returns:

  • (Object) —

    the current value of payload



69
70
71
# File 'lib/kward/plugins/registry.rb', line 69

def payload
  @payload
end

#type ⇒ Object

Returns the value of attribute type

Returns:

  • (Object) —

    the current value of type



69
70
71
# File 'lib/kward/plugins/registry.rb', line 69

def type
  @type
end

Instance Method Details

#to_h ⇒ Object



70
71
72
# File 'lib/kward/plugins/registry.rb', line 70

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