Class: OpenAI::Completion

Inherits:
Struct
  • Object
show all
Defined in:
lib/openai/completion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#choicesObject

Returns the value of attribute choices

Returns:

  • (Object)

    the current value of choices



2
3
4
# File 'lib/openai/completion.rb', line 2

def choices
  @choices
end

#createdObject

Returns the value of attribute created

Returns:

  • (Object)

    the current value of created



2
3
4
# File 'lib/openai/completion.rb', line 2

def created
  @created
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



2
3
4
# File 'lib/openai/completion.rb', line 2

def id
  @id
end

#modelObject

Returns the value of attribute model

Returns:

  • (Object)

    the current value of model



2
3
4
# File 'lib/openai/completion.rb', line 2

def model
  @model
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



2
3
4
# File 'lib/openai/completion.rb', line 2

def object
  @object
end

Instance Method Details

#created_atObject



3
4
5
# File 'lib/openai/completion.rb', line 3

def created_at
  Time.at(created)
end