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



278
279
280
# File 'lib/copilot/types.rb', line 278

def kind
  @kind
end

#rulesObject

Returns the value of attribute rules

Returns:

  • (Object)

    the current value of rules



278
279
280
# File 'lib/copilot/types.rb', line 278

def rules
  @rules
end

Instance Method Details

#to_hObject



279
280
281
282
283
# File 'lib/copilot/types.rb', line 279

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