Class: Applitools::ViewportSize::Dimension

Inherits:
Struct
  • Object
show all
Defined in:
lib/eyes_selenium_ruby/eyes/viewport_size.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#heightObject

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



23
24
25
# File 'lib/eyes_selenium_ruby/eyes/viewport_size.rb', line 23

def height
  @height
end

#widthObject

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



23
24
25
# File 'lib/eyes_selenium_ruby/eyes/viewport_size.rb', line 23

def width
  @width
end

Class Method Details

.to_hObject



24
25
26
# File 'lib/eyes_selenium_ruby/eyes/viewport_size.rb', line 24

def Dimension.to_h
  {width: width, height: height}
end