Class: Applitools::ViewportSize::Dimension
- Inherits:
-
Struct
- Object
- Struct
- Applitools::ViewportSize::Dimension
- Defined in:
- lib/eyes_selenium_ruby/eyes/viewport_size.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Class Method Summary collapse
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height
23 24 25 |
# File 'lib/eyes_selenium_ruby/eyes/viewport_size.rb', line 23 def height @height end |
#width ⇒ Object
Returns the value of attribute width
23 24 25 |
# File 'lib/eyes_selenium_ruby/eyes/viewport_size.rb', line 23 def width @width end |
Class Method Details
.to_h ⇒ Object
24 25 26 |
# File 'lib/eyes_selenium_ruby/eyes/viewport_size.rb', line 24 def Dimension.to_h {width: width, height: height} end |