Class: Kward::PluginRegistry::Transcript
- Inherits:
-
Object
- Object
- Kward::PluginRegistry::Transcript
- Defined in:
- lib/kward/plugin_registry.rb
Overview
Read-only transcript view exposed to plugin code.
Instance Method Summary collapse
-
#initialize(conversation) ⇒ Transcript
constructor
A new instance of Transcript.
-
#messages ⇒ Array<Hash>
Returns a deep-frozen copy of the active conversation messages.
Constructor Details
#initialize(conversation) ⇒ Transcript
Returns a new instance of Transcript.
29 30 31 |
# File 'lib/kward/plugin_registry.rb', line 29 def initialize(conversation) @conversation = conversation end |
Instance Method Details
#messages ⇒ Array<Hash>
Returns a deep-frozen copy of the active conversation messages.
36 37 38 |
# File 'lib/kward/plugin_registry.rb', line 36 def PluginRegistry.deep_freeze(PluginRegistry.deep_dup(@conversation.)) end |