Class: Puppeteer::Bidi::ElementHandle::BoundingBox
- Inherits:
-
Data
- Object
- Data
- Puppeteer::Bidi::ElementHandle::BoundingBox
- Defined in:
- lib/puppeteer/bidi/element_handle.rb,
sig/puppeteer/bidi/element_handle.rbs
Overview
Bounding box data class representing element position and dimensions
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.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#height ⇒ Object (readonly)
Returns the value of attribute height
11 12 13 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 11 def height @height end |
#width ⇒ Object (readonly)
Returns the value of attribute width
11 12 13 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 11 def width @width end |
#x ⇒ Object (readonly)
Returns the value of attribute x
11 12 13 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 11 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y
11 12 13 |
# File 'lib/puppeteer/bidi/element_handle.rb', line 11 def y @y end |
Class Method Details
.members ⇒ [ :x, :y, :width, :height ]
22 |
# File 'sig/puppeteer/bidi/element_handle.rbs', line 22
def self.members: () -> [ :x, :y, :width, :height ]
|
.new(x, y, width, height) ⇒ instance .new(x:, y:, width:, height:) ⇒ instance
19 20 |
# File 'sig/puppeteer/bidi/element_handle.rbs', line 19
def self.new: (untyped x, untyped y, untyped width, untyped height) -> instance
| (x: untyped, y: untyped, width: untyped, height: untyped) -> instance
|
Instance Method Details
#members ⇒ [ :x, :y, :width, :height ]
24 |
# File 'sig/puppeteer/bidi/element_handle.rbs', line 24
def members: () -> [ :x, :y, :width, :height ]
|