Class: Copilot::CommandsListRequest

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

Overview

Request to list available commands.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#include_builtinsObject

Returns the value of attribute include_builtins

Returns:

  • (Object)

    the current value of include_builtins



446
447
448
# File 'lib/copilot/types.rb', line 446

def include_builtins
  @include_builtins
end

#include_client_commandsObject

Returns the value of attribute include_client_commands

Returns:

  • (Object)

    the current value of include_client_commands



446
447
448
# File 'lib/copilot/types.rb', line 446

def include_client_commands
  @include_client_commands
end

#include_skillsObject

Returns the value of attribute include_skills

Returns:

  • (Object)

    the current value of include_skills



446
447
448
# File 'lib/copilot/types.rb', line 446

def include_skills
  @include_skills
end

Instance Method Details

#to_hObject



447
448
449
450
451
452
453
# File 'lib/copilot/types.rb', line 447

def to_h
  h = {}
  h[:includeBuiltins] = include_builtins unless include_builtins.nil?
  h[:includeClientCommands] = include_client_commands unless include_client_commands.nil?
  h[:includeSkills] = include_skills unless include_skills.nil?
  h
end