Class: OpenAI::SearchResult

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

Instance Attribute Summary collapse

Instance Attribute Details

#documentObject

Returns the value of attribute document

Returns:

  • (Object)

    the current value of document



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

def document
  @document
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



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

def object
  @object
end

#scoreObject

Returns the value of attribute score

Returns:

  • (Object)

    the current value of score



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

def score
  @score
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



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

def text
  @text
end