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



411
412
413
# File 'lib/copilot/types.rb', line 411

def state
  @state
end

#termsObject

Returns the value of attribute terms

Returns:

  • (Object)

    the current value of terms



411
412
413
# File 'lib/copilot/types.rb', line 411

def terms
  @terms
end

Class Method Details

.from_hash(h) ⇒ Object



412
413
414
# File 'lib/copilot/types.rb', line 412

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