Class: OpenAI::Models::VideoCreateCharacterResponse

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

Overview

See Also:

  • OpenAI::Resources::Videos#create_character

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:) ⇒ VideoCreateCharacterResponse

Returns a new instance of VideoCreateCharacterResponse.

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.

  • id: (String, nil)
  • created_at: (Integer)
  • name: (String, nil)


# 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.

Parameters:

  • value (Integer)

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.

Parameters:

  • value (String, nil)

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.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :name, String, nil?: true

Instance Method Details

#to_hash{ id: String?, created_at: Integer, name: String? }

Returns:

  • ({ id: String?, created_at: Integer, name: String? })


15
# File 'sig/openai/models/video_create_character_response.rbs', line 15

def to_hash: -> { id: String?, created_at: Integer, name: String? }