Class: OpenAI::Completion
- Inherits:
-
Struct
- Object
- Struct
- OpenAI::Completion
- Defined in:
- lib/openai/completion.rb
Instance Attribute Summary collapse
-
#choices ⇒ Object
Returns the value of attribute choices.
-
#created ⇒ Object
Returns the value of attribute created.
-
#id ⇒ Object
Returns the value of attribute id.
-
#model ⇒ Object
Returns the value of attribute model.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
Instance Attribute Details
#choices ⇒ Object
Returns the value of attribute choices
2 3 4 |
# File 'lib/openai/completion.rb', line 2 def choices @choices end |
#created ⇒ Object
Returns the value of attribute created
2 3 4 |
# File 'lib/openai/completion.rb', line 2 def created @created end |
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/openai/completion.rb', line 2 def id @id end |
#model ⇒ Object
Returns the value of attribute model
2 3 4 |
# File 'lib/openai/completion.rb', line 2 def model @model end |
#object ⇒ Object
Returns the value of attribute object
2 3 4 |
# File 'lib/openai/completion.rb', line 2 def object @object end |
Instance Method Details
#created_at ⇒ Object
3 4 5 |
# File 'lib/openai/completion.rb', line 3 def created_at Time.at(created) end |