Class: OnlyofficeWebdriverWrapper::Dimensions
- Inherits:
-
Object
- Object
- OnlyofficeWebdriverWrapper::Dimensions
- Defined in:
- lib/onlyoffice_webdriver_wrapper/dimensions.rb
Overview
Class for working with cursor coordinates
Instance Attribute Summary collapse
-
#left ⇒ Object
(also: #width, #x)
Returns the value of attribute left.
-
#top ⇒ Object
(also: #height, #y)
Returns the value of attribute top.
Instance Method Summary collapse
-
#initialize(left, top) ⇒ Dimensions
constructor
A new instance of Dimensions.
Constructor Details
#initialize(left, top) ⇒ Dimensions
Returns a new instance of Dimensions.
6 7 8 9 |
# File 'lib/onlyoffice_webdriver_wrapper/dimensions.rb', line 6 def initialize(left, top) @left = left @top = top end |
Instance Attribute Details
#left ⇒ Object Also known as: width, x
Returns the value of attribute left.
4 5 6 |
# File 'lib/onlyoffice_webdriver_wrapper/dimensions.rb', line 4 def left @left end |
#top ⇒ Object Also known as: height, y
Returns the value of attribute top.
4 5 6 |
# File 'lib/onlyoffice_webdriver_wrapper/dimensions.rb', line 4 def top @top end |