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



409
410
411
# File 'lib/copilot/types.rb', line 409

def state
  @state
end

#termsObject

Returns the value of attribute terms

Returns:

  • (Object)

    the current value of 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