Class: Copilot::ModelPolicy

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

Overview

Model policy state.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



632
633
634
# File 'lib/copilot/types.rb', line 632

def state
  @state
end

#termsObject

Returns the value of attribute terms

Returns:

  • (Object)

    the current value of terms



632
633
634
# File 'lib/copilot/types.rb', line 632

def terms
  @terms
end

Class Method Details

.from_hash(h) ⇒ Object



633
634
635
# File 'lib/copilot/types.rb', line 633

def self.from_hash(h)
  new(state: h["state"], terms: h["terms"])
end