Class: Puppeteer::Bidi::ElementHandle::BoundingBox

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



11
12
13
# File 'lib/puppeteer/bidi/element_handle.rb', line 11

def height
  @height
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



11
12
13
# File 'lib/puppeteer/bidi/element_handle.rb', line 11

def width
  @width
end

#xObject (readonly)

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



11
12
13
# File 'lib/puppeteer/bidi/element_handle.rb', line 11

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y

Returns:

  • (Object)

    the current value of 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 ]

Returns:

  • ([ :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

Overloads:

  • .new(x, y, width, height) ⇒ instance

    Parameters:

    • x (Object)
    • y (Object)
    • width (Object)
    • height (Object)

    Returns:

    • (instance)
  • .new(x:, y:, width:, height:) ⇒ instance

    Parameters:

    • x: (Object)
    • y: (Object)
    • width: (Object)
    • height: (Object)

    Returns:

    • (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 ]

Returns:

  • ([ :x, :y, :width, :height ])


24
# File 'sig/puppeteer/bidi/element_handle.rbs', line 24

def members: () -> [ :x, :y, :width, :height ]