Class: Copilot::CommandsInvokeRequest

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

Request to invoke a command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



437
438
439
# File 'lib/copilot/types.rb', line 437

def input
  @input
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



437
438
439
# File 'lib/copilot/types.rb', line 437

def name
  @name
end

Instance Method Details

#to_hObject



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