Class: Copilot::ModelPolicy
- Inherits:
-
Struct
- Object
- Struct
- Copilot::ModelPolicy
- Defined in:
- lib/copilot/types.rb
Overview
Model policy state.
Instance Attribute Summary collapse
-
#state ⇒ Object
Returns the value of attribute state.
-
#terms ⇒ Object
Returns the value of attribute terms.
Class Method Summary collapse
Instance Attribute Details
#state ⇒ Object
Returns the value of attribute state
409 410 411 |
# File 'lib/copilot/types.rb', line 409 def state @state end |
#terms ⇒ Object
Returns the value of attribute terms
409 410 411 |
# File 'lib/copilot/types.rb', line 409 def terms @terms end |
Class Method Details
.from_hash(h) ⇒ Object
410 411 412 |
# File 'lib/copilot/types.rb', line 410 def self.from_hash(h) new(state: h["state"], terms: h["terms"]) end |