Class: RunApi::Topaz::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/runapi/topaz/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key: nil, **options) ⇒ Client

Returns a new instance of Client.



8
9
10
11
12
13
14
15
# File 'lib/runapi/topaz/client.rb', line 8

def initialize(api_key: nil, **options)
  @api_key = Core::Auth.resolve_api_key(api_key)

  client_options = Core::ClientOptions.new(api_key: @api_key, **options)
  http = client_options.http_client || Core::HttpClient.new(client_options)
  @upscale_image = Resources::UpscaleImage.new(http)
  @upscale_video = Resources::UpscaleVideo.new(http)
end

Instance Attribute Details

#upscale_imageObject (readonly)

Returns the value of attribute upscale_image.



6
7
8
# File 'lib/runapi/topaz/client.rb', line 6

def upscale_image
  @upscale_image
end

#upscale_videoObject (readonly)

Returns the value of attribute upscale_video.



6
7
8
# File 'lib/runapi/topaz/client.rb', line 6

def upscale_video
  @upscale_video
end