Class: Copilot::PermissionRequestResult

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

Overview

Result of a permission request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



150
151
152
# File 'lib/copilot/types.rb', line 150

def kind
  @kind
end

#rulesObject

Returns the value of attribute rules

Returns:

  • (Object)

    the current value of rules



150
151
152
# File 'lib/copilot/types.rb', line 150

def rules
  @rules
end

Instance Method Details

#to_hObject



151
152
153
154
155
# File 'lib/copilot/types.rb', line 151

def to_h
  h = { kind: kind }
  h[:rules] = rules if rules
  h
end