Class: OpenAI::Models::VideoCreateCharacterResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/video_create_character_response.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, created_at:, name:) ⇒ Object

Parameters:

  • id (String, nil)

    Identifier for the character creation cameo.

  • created_at (Integer)

    Unix timestamp (in seconds) when the character was created.

  • name (String, nil)

    Display name for the character.



# File 'lib/openai/models/video_create_character_response.rb', line 25


Instance Attribute Details

#created_atInteger

Unix timestamp (in seconds) when the character was created.

Returns:

  • (Integer)


17
# File 'lib/openai/models/video_create_character_response.rb', line 17

required :created_at, Integer

#idString?

Identifier for the character creation cameo.

Returns:

  • (String, nil)


11
# File 'lib/openai/models/video_create_character_response.rb', line 11

required :id, String, nil?: true

#nameString?

Display name for the character.

Returns:

  • (String, nil)


23
# File 'lib/openai/models/video_create_character_response.rb', line 23

required :name, String, nil?: true