Class: Applitools::Appium::RegionProvider
- Inherits:
-
Object
- Object
- Applitools::Appium::RegionProvider
- Defined in:
- lib/applitools/appium/region_provider.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#driver ⇒ Object
Returns the value of attribute driver.
-
#eye_region ⇒ Object
Returns the value of attribute eye_region.
-
#region_to_check ⇒ Object
Returns the value of attribute region_to_check.
Instance Method Summary collapse
- #coordinate_type ⇒ Object
-
#initialize(driver, eye_region) ⇒ RegionProvider
constructor
A new instance of RegionProvider.
- #region ⇒ Object
Constructor Details
#initialize(driver, eye_region) ⇒ RegionProvider
Returns a new instance of RegionProvider.
8 9 10 11 12 13 |
# File 'lib/applitools/appium/region_provider.rb', line 8 def initialize(driver, eye_region) self.driver = driver self.eye_region = eye_region self.region_to_check = Applitools::Region::EMPTY convert_region_coordinates end |
Instance Attribute Details
#driver ⇒ Object
Returns the value of attribute driver.
6 7 8 |
# File 'lib/applitools/appium/region_provider.rb', line 6 def driver @driver end |
#eye_region ⇒ Object
Returns the value of attribute eye_region.
6 7 8 |
# File 'lib/applitools/appium/region_provider.rb', line 6 def eye_region @eye_region end |
#region_to_check ⇒ Object
Returns the value of attribute region_to_check.
6 7 8 |
# File 'lib/applitools/appium/region_provider.rb', line 6 def region_to_check @region_to_check end |
Instance Method Details
#coordinate_type ⇒ Object
19 20 21 |
# File 'lib/applitools/appium/region_provider.rb', line 19 def coordinate_type nil end |
#region ⇒ Object
15 16 17 |
# File 'lib/applitools/appium/region_provider.rb', line 15 def region region_to_check end |