Class: Copilot::SlashCommandInput
- Inherits:
-
Struct
- Object
- Struct
- Copilot::SlashCommandInput
- Defined in:
- lib/copilot/types.rb
Overview
Input configuration for a slash command.
Instance Attribute Summary collapse
-
#completion ⇒ Object
Returns the value of attribute completion.
-
#hint ⇒ Object
Returns the value of attribute hint.
Instance Method Summary collapse
Instance Attribute Details
#completion ⇒ Object
Returns the value of attribute completion
408 409 410 |
# File 'lib/copilot/types.rb', line 408 def completion @completion end |
#hint ⇒ Object
Returns the value of attribute hint
408 409 410 |
# File 'lib/copilot/types.rb', line 408 def hint @hint end |
Instance Method Details
#to_h ⇒ Object
409 410 411 412 413 |
# File 'lib/copilot/types.rb', line 409 def to_h h = { hint: hint } h[:completion] = completion if completion h end |