Class: RunApi::Wan::Client
- Inherits:
-
Object
- Object
- RunApi::Wan::Client
- Defined in:
- lib/runapi/wan/client.rb
Instance Attribute Summary collapse
-
#animate ⇒ Object
readonly
Returns the value of attribute animate.
-
#edit_video ⇒ Object
readonly
Returns the value of attribute edit_video.
-
#image_to_video ⇒ Object
readonly
Returns the value of attribute image_to_video.
-
#reference_to_video ⇒ Object
readonly
Returns the value of attribute reference_to_video.
-
#speech_to_video ⇒ Object
readonly
Returns the value of attribute speech_to_video.
-
#text_to_image ⇒ Object
readonly
Returns the value of attribute text_to_image.
-
#text_to_video ⇒ Object
readonly
Returns the value of attribute text_to_video.
-
#video_to_video ⇒ Object
readonly
Returns the value of attribute video_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.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/runapi/wan/client.rb', line 9 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() @text_to_video = Resources::TextToVideo.new(http) @image_to_video = Resources::ImageToVideo.new(http) @video_to_video = Resources::VideoToVideo.new(http) @speech_to_video = Resources::SpeechToVideo.new(http) @animate = Resources::Animate.new(http) @text_to_image = Resources::TextToImage.new(http) @reference_to_video = Resources::ReferenceToVideo.new(http) @edit_video = Resources::EditVideo.new(http) end |
Instance Attribute Details
#animate ⇒ Object (readonly)
Returns the value of attribute animate.
6 7 8 |
# File 'lib/runapi/wan/client.rb', line 6 def animate @animate end |
#edit_video ⇒ Object (readonly)
Returns the value of attribute edit_video.
6 7 8 |
# File 'lib/runapi/wan/client.rb', line 6 def edit_video @edit_video end |
#image_to_video ⇒ Object (readonly)
Returns the value of attribute image_to_video.
6 7 8 |
# File 'lib/runapi/wan/client.rb', line 6 def image_to_video @image_to_video end |
#reference_to_video ⇒ Object (readonly)
Returns the value of attribute reference_to_video.
6 7 8 |
# File 'lib/runapi/wan/client.rb', line 6 def reference_to_video @reference_to_video end |
#speech_to_video ⇒ Object (readonly)
Returns the value of attribute speech_to_video.
6 7 8 |
# File 'lib/runapi/wan/client.rb', line 6 def speech_to_video @speech_to_video end |
#text_to_image ⇒ Object (readonly)
Returns the value of attribute text_to_image.
6 7 8 |
# File 'lib/runapi/wan/client.rb', line 6 def text_to_image @text_to_image end |
#text_to_video ⇒ Object (readonly)
Returns the value of attribute text_to_video.
6 7 8 |
# File 'lib/runapi/wan/client.rb', line 6 def text_to_video @text_to_video end |
#video_to_video ⇒ Object (readonly)
Returns the value of attribute video_to_video.
6 7 8 |
# File 'lib/runapi/wan/client.rb', line 6 def video_to_video @video_to_video end |