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.
589 590 591 592 593 594 |
# File 'lib/daytona/computer_use.rb', line 589 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’).
577 578 579 |
# File 'lib/daytona/computer_use.rb', line 577 def fmt @fmt end |
#quality ⇒ Integer?
Returns Compression quality (0-100).
580 581 582 |
# File 'lib/daytona/computer_use.rb', line 580 def quality @quality end |
#scale ⇒ Float?
Returns Scale factor for the screenshot.
583 584 585 |
# File 'lib/daytona/computer_use.rb', line 583 def scale @scale end |
#show_cursor ⇒ Boolean?
Returns Whether to show the cursor in the screenshot.
574 575 576 |
# File 'lib/daytona/computer_use.rb', line 574 def show_cursor @show_cursor end |