Class: Kward::PluginRegistry::Command
- Inherits:
-
Struct
- Object
- Struct
- Kward::PluginRegistry::Command
- Defined in:
- lib/kward/plugin_registry.rb
Overview
Registered slash command exposed in completion, RPC command listings, and interactive command dispatch.
Instance Attribute Summary collapse
-
#argument_hint ⇒ Object
Returns the value of attribute argument_hint.
-
#description ⇒ Object
Returns the value of attribute description.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#argument_hint ⇒ Object
Returns the value of attribute argument_hint
22 23 24 |
# File 'lib/kward/plugin_registry.rb', line 22 def argument_hint @argument_hint end |
#description ⇒ Object
Returns the value of attribute description
22 23 24 |
# File 'lib/kward/plugin_registry.rb', line 22 def description @description end |
#handler ⇒ Object
Returns the value of attribute handler
22 23 24 |
# File 'lib/kward/plugin_registry.rb', line 22 def handler @handler end |
#name ⇒ Object
Returns the value of attribute name
22 23 24 |
# File 'lib/kward/plugin_registry.rb', line 22 def name @name end |
#path ⇒ Object
Returns the value of attribute path
22 23 24 |
# File 'lib/kward/plugin_registry.rb', line 22 def path @path end |
Instance Method Details
#entry ⇒ Object
23 24 25 |
# File 'lib/kward/plugin_registry.rb', line 23 def entry { name: name, description: description, argument_hint: argument_hint } end |