Class: Puppeteer::ElementHandle::BoundingBox
- Inherits:
-
Object
- Object
- Puppeteer::ElementHandle::BoundingBox
- Defined in:
- lib/puppeteer/element_handle/bounding_box.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x:, y:, width:, height:) ⇒ BoundingBox
constructor
A new instance of BoundingBox.
Constructor Details
#initialize(x:, y:, width:, height:) ⇒ BoundingBox
Returns a new instance of BoundingBox.
3 4 5 6 7 8 |
# File 'lib/puppeteer/element_handle/bounding_box.rb', line 3 def initialize(x:, y:, width:, height:) @x = x @y = y @width = width @height = height end |
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height.
10 11 12 |
# File 'lib/puppeteer/element_handle/bounding_box.rb', line 10 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
10 11 12 |
# File 'lib/puppeteer/element_handle/bounding_box.rb', line 10 def width @width end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
10 11 12 |
# File 'lib/puppeteer/element_handle/bounding_box.rb', line 10 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
10 11 12 |
# File 'lib/puppeteer/element_handle/bounding_box.rb', line 10 def y @y end |