Class: Copilot::SlashCommandInfo
- Inherits:
-
Struct
- Object
- Struct
- Copilot::SlashCommandInfo
- Defined in:
- lib/copilot/types.rb
Overview
Information about a slash command.
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#allow_during_agent_execution ⇒ Object
Returns the value of attribute allow_during_agent_execution.
-
#description ⇒ Object
Returns the value of attribute description.
-
#experimental ⇒ Object
Returns the value of attribute experimental.
-
#input ⇒ Object
Returns the value of attribute input.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases
417 418 419 |
# File 'lib/copilot/types.rb', line 417 def aliases @aliases end |
#allow_during_agent_execution ⇒ Object
Returns the value of attribute allow_during_agent_execution
417 418 419 |
# File 'lib/copilot/types.rb', line 417 def allow_during_agent_execution @allow_during_agent_execution end |
#description ⇒ Object
Returns the value of attribute description
417 418 419 |
# File 'lib/copilot/types.rb', line 417 def description @description end |
#experimental ⇒ Object
Returns the value of attribute experimental
417 418 419 |
# File 'lib/copilot/types.rb', line 417 def experimental @experimental end |
#input ⇒ Object
Returns the value of attribute input
417 418 419 |
# File 'lib/copilot/types.rb', line 417 def input @input end |
#kind ⇒ Object
Returns the value of attribute kind
417 418 419 |
# File 'lib/copilot/types.rb', line 417 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name
417 418 419 |
# File 'lib/copilot/types.rb', line 417 def name @name end |
Instance Method Details
#to_h ⇒ Object
422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'lib/copilot/types.rb', line 422 def to_h h = { allowDuringAgentExecution: allow_during_agent_execution, description: description, kind: kind, name: name, } h[:aliases] = aliases if aliases h[:experimental] = experimental unless experimental.nil? h[:input] = input.to_h if input h end |