class

OpenAI::VideoListResource

Inherits JSON::Serializable < Reference < Object

Constructors

new(object : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, data : Array(VideoResource) = [] of VideoResource, first_id : VideoListResourceFirstId = nil, last_id : VideoListResourceLastId = nil, has_more : Bool = false)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data

A list of items

Source
data=(data : Array(VideoResource))

A list of items

Source
first_id
Source
first_id=(first_id : VideoListResourceFirstId)
Source
has_more

Whether there are more items available.

Source
has_more=(has_more : Bool)

Whether there are more items available.

Source
last_id
Source
last_id=(last_id : VideoListResourceLastId)
Source
object

The type of object returned, must be list.

Source
object=(object : Hash(String, JSON::Any))

The type of object returned, must be list.

Source