Class: Copilot::PermissionRequestResult
- Inherits:
-
Struct
- Object
- Struct
- Copilot::PermissionRequestResult
- Defined in:
- lib/copilot/types.rb
Overview
Result of a permission request.
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#rules ⇒ Object
Returns the value of attribute rules.
Instance Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
150 151 152 |
# File 'lib/copilot/types.rb', line 150 def kind @kind end |
#rules ⇒ Object
Returns the value of attribute rules
150 151 152 |
# File 'lib/copilot/types.rb', line 150 def rules @rules end |
Instance Method Details
#to_h ⇒ Object
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 |