Method: OpenAI::Internal::Type::Union#variants

Defined in:
lib/openai/internal/type/union.rb

#variantsArray<Object>

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

All of the specified variants for this union.

Returns:

  • (Array<Object>)


53
# File 'lib/openai/internal/type/union.rb', line 53

def variants = derefed_variants.map(&:last)