Class: Applitools::Dimension
- Inherits:
-
Object
- Object
- Applitools::Dimension
- Defined in:
- lib/eyes_selenium/eyes/dimension.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width, height) ⇒ Dimension
constructor
A new instance of Dimension.
- #to_hash ⇒ Object
- #values ⇒ Object
Constructor Details
#initialize(width, height) ⇒ Dimension
Returns a new instance of Dimension.
4 5 6 7 |
# File 'lib/eyes_selenium/eyes/dimension.rb', line 4 def initialize(width, height) @width = width @height = height end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
3 4 5 |
# File 'lib/eyes_selenium/eyes/dimension.rb', line 3 def height @height end |
#width ⇒ Object
Returns the value of attribute width.
3 4 5 |
# File 'lib/eyes_selenium/eyes/dimension.rb', line 3 def width @width end |
Instance Method Details
#to_hash ⇒ Object
9 10 11 |
# File 'lib/eyes_selenium/eyes/dimension.rb', line 9 def to_hash { width: width, height: height} end |
#values ⇒ Object
12 13 14 |
# File 'lib/eyes_selenium/eyes/dimension.rb', line 12 def values [width, height] end |