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.
563 564 565 566 567 568 |
# File 'lib/daytona/computer_use.rb', line 563 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.
557 558 559 |
# File 'lib/daytona/computer_use.rb', line 557 def height @height end |
#width ⇒ Integer
Returns Width of the region.
554 555 556 |
# File 'lib/daytona/computer_use.rb', line 554 def width @width end |
#x ⇒ Integer
Returns X coordinate of the region.
548 549 550 |
# File 'lib/daytona/computer_use.rb', line 548 def x @x end |
#y ⇒ Integer
Returns Y coordinate of the region.
551 552 553 |
# File 'lib/daytona/computer_use.rb', line 551 def y @y end |