class

OpenAI::UserListResource

Inherits JSON::Serializable < Reference < Object

Paginated list of user objects returned when inspecting group membership.

Constructors

new(object : UserListResourceObject = UserListResourceObject::List, data : Array(User) = [] of User, has_more : Bool = false, next_value : UserListResourceNext = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

data

Users in the current page.

Source
data=(data : Array(User))

Users in the current page.

Source
has_more

Whether more users are available when paginating.

Source
has_more=(has_more : Bool)

Whether more users are available when paginating.

Source
next_value

Cursor to fetch the next page of results, or null when no further users are available.

Source
next_value=(next_value : UserListResourceNext)

Cursor to fetch the next page of results, or null when no further users are available.

Source
object

Always list.

Source
object=(object : UserListResourceObject)

Always list.

Source