Class: Applitools::RegionProvider

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region, coordinate_type) ⇒ RegionProvider

Returns a new instance of RegionProvider.



7
8
9
10
# File 'lib/applitools/core/region_provider.rb', line 7

def initialize(region, coordinate_type)
  @region = region
  @coordinate_type = coordinate_type
end

Instance Attribute Details

#coordinate_typeObject (readonly)

Do we need it under Selenium module?



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

def coordinate_type
  @coordinate_type
end

#regionObject (readonly)

Do we need it under Selenium module?



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

def region
  @region
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/applitools/core/region_provider.rb', line 12

def to_s
  "Applitools::RegionProvider(#{region}, #{coordinate_type})"
end