Class: CodexSDK::Items::Reasoning
- Inherits:
-
Data
- Object
- Data
- CodexSDK::Items::Reasoning
- Defined in:
- lib/codex_sdk/items.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id
26 27 28 |
# File 'lib/codex_sdk/items.rb', line 26 def id @id end |
#text ⇒ Object (readonly)
Returns the value of attribute text
26 27 28 |
# File 'lib/codex_sdk/items.rb', line 26 def text @text end |
Class Method Details
.from_json(data) ⇒ Object
27 28 29 |
# File 'lib/codex_sdk/items.rb', line 27 def self.from_json(data) new(id: data["id"], text: data["text"].to_s) end |