Class: TestOpenai::ListFilesResp
- Inherits:
-
Object
- Object
- TestOpenai::ListFilesResp
- Defined in:
- lib/models.rb
Instance Attribute Summary collapse
-
#data ⇒ Array<TestOpenai::File>
The list of files.
-
#has_more ⇒ Boolean
Whether there are more data to load.
-
#object ⇒ String
Type of the data.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListFilesResp
constructor
A new instance of ListFilesResp.
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
#data ⇒ Array<TestOpenai::File>
Returns The list of files.
40 41 42 |
# File 'lib/models.rb', line 40 def data @data end |
#has_more ⇒ Boolean
Returns Whether there are more data to load.
38 39 40 |
# File 'lib/models.rb', line 38 def has_more @has_more end |
#object ⇒ String
Returns Type of the data. Ex: ‘list’.
36 37 38 |
# File 'lib/models.rb', line 36 def object @object end |