Class: Copilot::CommandsInvokeRequest
- Inherits:
-
Struct
- Object
- Struct
- Copilot::CommandsInvokeRequest
- Defined in:
- lib/copilot/types.rb
Overview
Request to invoke a command.
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input
437 438 439 |
# File 'lib/copilot/types.rb', line 437 def input @input end |
#name ⇒ Object
Returns the value of attribute name
437 438 439 |
# File 'lib/copilot/types.rb', line 437 def name @name end |
Instance Method Details
#to_h ⇒ Object
438 439 440 441 442 |
# File 'lib/copilot/types.rb', line 438 def to_h h = { name: name } h[:input] = input if input h end |