Class: Daytona::ComputerUse::ScreenshotRegion
- Inherits:
-
Object
- Object
- Daytona::ComputerUse::ScreenshotRegion
- Defined in:
- lib/daytona/computer_use.rb
Overview
Region coordinates for screenshot operations.
Instance Attribute Summary collapse
-
#height ⇒ Integer
Height of the region.
-
#width ⇒ Integer
Width of the region.
-
#x ⇒ Integer
X coordinate of the region.
-
#y ⇒ Integer
Y coordinate of the region.
Instance Method Summary collapse
-
#initialize(x:, y:, width:, height:) ⇒ ScreenshotRegion
constructor
A new instance of ScreenshotRegion.
Constructor Details
#initialize(x:, y:, width:, height:) ⇒ ScreenshotRegion
Returns a new instance of ScreenshotRegion.
430 431 432 433 434 435 |
# File 'lib/daytona/computer_use.rb', line 430 def initialize(x:, y:, width:, height:) @x = x @y = y @width = width @height = height end |
Instance Attribute Details
#height ⇒ Integer
Returns Height of the region.
424 425 426 |
# File 'lib/daytona/computer_use.rb', line 424 def height @height end |
#width ⇒ Integer
Returns Width of the region.
421 422 423 |
# File 'lib/daytona/computer_use.rb', line 421 def width @width end |
#x ⇒ Integer
Returns X coordinate of the region.
415 416 417 |
# File 'lib/daytona/computer_use.rb', line 415 def x @x end |
#y ⇒ Integer
Returns Y coordinate of the region.
418 419 420 |
# File 'lib/daytona/computer_use.rb', line 418 def y @y end |