Class: OpenAI::Model::ListData
- Inherits:
-
Object
- Object
- OpenAI::Model::ListData
show all
- Defined in:
- lib/openai/models/list_data.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(attributes) ⇒ ListData
16
17
18
19
20
|
# File 'lib/openai/models/list_data.rb', line 16
def initialize(attributes)
attributes.each do |key, value|
instance_variable_set("@#{key}", key == 'data' ? parse_data(value) : value)
end
end
|
Instance Attribute Details
5
6
7
|
# File 'lib/openai/models/list_data.rb', line 5
def data
@data
end
|
#first_id ⇒ String
8
9
10
|
# File 'lib/openai/models/list_data.rb', line 8
def first_id
@first_id
end
|
#has_more ⇒ bool
14
15
16
|
# File 'lib/openai/models/list_data.rb', line 14
def has_more
@has_more
end
|
#last_id ⇒ String
11
12
13
|
# File 'lib/openai/models/list_data.rb', line 11
def last_id
@last_id
end
|
Instance Method Details
#parse_data(value) ⇒ Object
22
23
|
# File 'lib/openai/models/list_data.rb', line 22
def parse_data(value)
end
|