Class: Cadenya::Types::ModelSpec_Capability_Reasoning
- Inherits:
-
Object
- Object
- Cadenya::Types::ModelSpec_Capability_Reasoning
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#reasoning ⇒ Object
readonly
Returns the value of attribute reasoning.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, reasoning: nil) ⇒ ModelSpec_Capability_Reasoning
constructor
A new instance of ModelSpec_Capability_Reasoning.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, reasoning: nil) ⇒ ModelSpec_Capability_Reasoning
Returns a new instance of ModelSpec_Capability_Reasoning.
9486 9487 9488 9489 |
# File 'lib/cadenya/types.rb', line 9486 def initialize(type: nil, reasoning: nil) @type = type @reasoning = reasoning end |
Instance Attribute Details
#reasoning ⇒ Object (readonly)
Returns the value of attribute reasoning.
9484 9485 9486 |
# File 'lib/cadenya/types.rb', line 9484 def reasoning @reasoning end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9484 9485 9486 |
# File 'lib/cadenya/types.rb', line 9484 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
9491 9492 9493 9494 9495 9496 |
# File 'lib/cadenya/types.rb', line 9491 def self.from_json(data) new( type: data["type"], reasoning: data["reasoning"].nil? ? nil : Types::Capability_Reasoning.from_json(data["reasoning"]), ) end |