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
278 279 280 |
# File 'lib/copilot/types.rb', line 278 def kind @kind end |
#rules ⇒ Object
Returns the value of attribute rules
278 279 280 |
# File 'lib/copilot/types.rb', line 278 def rules @rules end |
Instance Method Details
#to_h ⇒ Object
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 |