Class: RunApi::Topaz::Client
- Inherits:
-
Core::Client
- Object
- Core::Client
- RunApi::Topaz::Client
- Defined in:
- lib/runapi/topaz/client.rb
Overview
Topaz AI upscaling client for increasing image and video resolution.
Instance Attribute Summary collapse
-
#upscale_image ⇒ Resources::UpscaleImage
readonly
AI-powered image upscaling (1x, 2x, 4x, 8x).
-
#upscale_video ⇒ Resources::UpscaleVideo
readonly
AI-powered video upscaling (1x, 2x, 4x).
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.
21 22 23 24 25 |
# File 'lib/runapi/topaz/client.rb', line 21 def initialize(api_key: nil, **) super @upscale_image = Resources::UpscaleImage.new(http) @upscale_video = Resources::UpscaleVideo.new(http) end |
Instance Attribute Details
#upscale_image ⇒ Resources::UpscaleImage (readonly)
Returns AI-powered image upscaling (1x, 2x, 4x, 8x).
17 18 19 |
# File 'lib/runapi/topaz/client.rb', line 17 def upscale_image @upscale_image end |
#upscale_video ⇒ Resources::UpscaleVideo (readonly)
Returns AI-powered video upscaling (1x, 2x, 4x).
19 20 21 |
# File 'lib/runapi/topaz/client.rb', line 19 def upscale_video @upscale_video end |