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.
- #to_s ⇒ Object
Constructor Details
#initialize(left, top) ⇒ Dimensions
Returns a new instance of Dimensions.
8 9 10 11 |
# File 'lib/onlyoffice_webdriver_wrapper/dimensions.rb', line 8 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.
6 7 8 |
# File 'lib/onlyoffice_webdriver_wrapper/dimensions.rb', line 6 def left @left end |
#top ⇒ Object Also known as: height, y
Returns the value of attribute top.
6 7 8 |
# File 'lib/onlyoffice_webdriver_wrapper/dimensions.rb', line 6 def top @top end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/onlyoffice_webdriver_wrapper/dimensions.rb', line 18 def to_s "Dimensions(left: #{@left}, top: #{@top})" end |