Class: Puppeteer::ElementHandle::Point
- Inherits:
-
Object
- Object
- Puppeteer::ElementHandle::Point
- Defined in:
- lib/puppeteer/element_handle.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
- #+(other) ⇒ Object
- #/(num) ⇒ Object
-
#initialize(x:, y:) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(x:, y:) ⇒ Point
Returns a new instance of Point.
57 58 59 60 |
# File 'lib/puppeteer/element_handle.rb', line 57 def initialize(x:, y:) @x = x @y = y end |
Instance Attribute Details
#x ⇒ Object (readonly)
Returns the value of attribute x.
76 77 78 |
# File 'lib/puppeteer/element_handle.rb', line 76 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
76 77 78 |
# File 'lib/puppeteer/element_handle.rb', line 76 def y @y end |