Class: Daytona::ComputerUse::ScreenshotOptions
- Inherits:
-
Object
- Object
- Daytona::ComputerUse::ScreenshotOptions
- Defined in:
- lib/daytona/computer_use.rb
Overview
Options for screenshot compression and display.
Instance Attribute Summary collapse
-
#fmt ⇒ String?
Image format (e.g., ‘png’, ‘jpeg’, ‘webp’).
-
#quality ⇒ Integer?
Compression quality (0-100).
-
#scale ⇒ Float?
Scale factor for the screenshot.
-
#show_cursor ⇒ Boolean?
Whether to show the cursor in the screenshot.
Instance Method Summary collapse
-
#initialize(show_cursor: nil, format: nil, quality: nil, scale: nil) ⇒ ScreenshotOptions
constructor
A new instance of ScreenshotOptions.
Constructor Details
#initialize(show_cursor: nil, format: nil, quality: nil, scale: nil) ⇒ ScreenshotOptions
Returns a new instance of ScreenshotOptions.
453 454 455 456 457 458 |
# File 'lib/daytona/computer_use.rb', line 453 def initialize(show_cursor: nil, format: nil, quality: nil, scale: nil) @show_cursor = show_cursor @fmt = format @quality = quality @scale = scale end |
Instance Attribute Details
#fmt ⇒ String?
Returns Image format (e.g., ‘png’, ‘jpeg’, ‘webp’).
441 442 443 |
# File 'lib/daytona/computer_use.rb', line 441 def fmt @fmt end |
#quality ⇒ Integer?
Returns Compression quality (0-100).
444 445 446 |
# File 'lib/daytona/computer_use.rb', line 444 def quality @quality end |
#scale ⇒ Float?
Returns Scale factor for the screenshot.
447 448 449 |
# File 'lib/daytona/computer_use.rb', line 447 def scale @scale end |
#show_cursor ⇒ Boolean?
Returns Whether to show the cursor in the screenshot.
438 439 440 |
# File 'lib/daytona/computer_use.rb', line 438 def show_cursor @show_cursor end |