Class: RunApi::GeminiOmni::Client
- Inherits:
-
Object
- Object
- RunApi::GeminiOmni::Client
- Defined in:
- lib/runapi/gemini_omni/client.rb
Instance Attribute Summary collapse
-
#create_audio ⇒ Object
readonly
Returns the value of attribute create_audio.
-
#create_character ⇒ Object
readonly
Returns the value of attribute create_character.
-
#text_to_video ⇒ Object
readonly
Returns the value of attribute text_to_video.
Instance Method Summary collapse
-
#initialize(api_key: nil, **options) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(api_key: nil, **options) ⇒ Client
Returns a new instance of Client.
8 9 10 11 12 13 14 15 16 |
# File 'lib/runapi/gemini_omni/client.rb', line 8 def initialize(api_key: nil, **) @api_key = Core::Auth.resolve_api_key(api_key) = Core::ClientOptions.new(api_key: @api_key, **) http = .http_client || Core::HttpClient.new() @create_audio = Resources::CreateAudio.new(http) @create_character = Resources::CreateCharacter.new(http) @text_to_video = Resources::TextToVideo.new(http) end |
Instance Attribute Details
#create_audio ⇒ Object (readonly)
Returns the value of attribute create_audio.
6 7 8 |
# File 'lib/runapi/gemini_omni/client.rb', line 6 def create_audio @create_audio end |
#create_character ⇒ Object (readonly)
Returns the value of attribute create_character.
6 7 8 |
# File 'lib/runapi/gemini_omni/client.rb', line 6 def create_character @create_character end |
#text_to_video ⇒ Object (readonly)
Returns the value of attribute text_to_video.
6 7 8 |
# File 'lib/runapi/gemini_omni/client.rb', line 6 def text_to_video @text_to_video end |