Class: CodexSDK::Items::Reasoning

Inherits:
Data
  • Object
show all
Defined in:
lib/codex_sdk/items.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



26
27
28
# File 'lib/codex_sdk/items.rb', line 26

def id
  @id
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

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