Class: Applitools::Appium::RegionProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/applitools/appium/region_provider.rb

Direct Known Subclasses

AndroidRegionProvider, IosRegionProvider

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#driverObject

Returns the value of attribute driver.



6
7
8
# File 'lib/applitools/appium/region_provider.rb', line 6

def driver
  @driver
end

#eye_regionObject

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_checkObject

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_typeObject



19
20
21
# File 'lib/applitools/appium/region_provider.rb', line 19

def coordinate_type
  nil
end

#regionObject



15
16
17
# File 'lib/applitools/appium/region_provider.rb', line 15

def region
  region_to_check
end