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.
427 428 429 430 431 432 |
# File 'lib/daytona/computer_use.rb', line 427 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.
421 422 423 |
# File 'lib/daytona/computer_use.rb', line 421 def height @height end |
#width ⇒ Integer
Returns Width of the region.
418 419 420 |
# File 'lib/daytona/computer_use.rb', line 418 def width @width end |
#x ⇒ Integer
Returns X coordinate of the region.
412 413 414 |
# File 'lib/daytona/computer_use.rb', line 412 def x @x end |
#y ⇒ Integer
Returns Y coordinate of the region.
415 416 417 |
# File 'lib/daytona/computer_use.rb', line 415 def y @y end |