Class: GAI18n::OpenAI::Thread
- Inherits:
-
Object
- Object
- GAI18n::OpenAI::Thread
- Defined in:
- lib/gai18n/openai/thread.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(response) ⇒ Thread
constructor
A new instance of Thread.
Constructor Details
#initialize(response) ⇒ Thread
Returns a new instance of Thread.
15 16 17 18 19 20 |
# File 'lib/gai18n/openai/thread.rb', line 15 def initialize(response) @id = response['id'] @object = response['object'] @created_at = response['created_at'] @metadata = response['metadata'] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
13 14 15 |
# File 'lib/gai18n/openai/thread.rb', line 13 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'lib/gai18n/openai/thread.rb', line 13 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
13 14 15 |
# File 'lib/gai18n/openai/thread.rb', line 13 def @metadata end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
13 14 15 |
# File 'lib/gai18n/openai/thread.rb', line 13 def object @object end |