Class: TestOpenai::ListFilesResp

Inherits:
Object
  • Object
show all
Defined in:
lib/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ListFilesResp

Returns a new instance of ListFilesResp.



42
43
44
45
46
# File 'lib/models.rb', line 42

def initialize(**args)
  @object = args.fetch(:object, 'list')
  @has_more = args.fetch(:has_more, false)
  @data = args.fetch(:data, [])
end

Instance Attribute Details

#dataArray<TestOpenai::File>

Returns The list of files.

Returns:



40
41
42
# File 'lib/models.rb', line 40

def data
  @data
end

#has_moreBoolean

Returns Whether there are more data to load.

Returns:

  • (Boolean)

    Whether there are more data to load.



38
39
40
# File 'lib/models.rb', line 38

def has_more
  @has_more
end

#objectString

Returns Type of the data. Ex: ‘list’.

Returns:

  • (String)

    Type of the data. Ex: ‘list’.



36
37
38
# File 'lib/models.rb', line 36

def object
  @object
end