Class: Applitools::Selenium::VGRegion

Inherits:
Object
  • Object
show all
Defined in:
lib/applitools/selenium/visual_grid/vg_region.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region, padding_proc) ⇒ VGRegion

Returns a new instance of VGRegion.



6
7
8
9
# File 'lib/applitools/selenium/visual_grid/vg_region.rb', line 6

def initialize(region, padding_proc)
  self.region = region
  self.padding_proc = padding_proc
end

Instance Attribute Details

#padding_procObject

Returns the value of attribute padding_proc.



5
6
7
# File 'lib/applitools/selenium/visual_grid/vg_region.rb', line 5

def padding_proc
  @padding_proc
end

#regionObject

Returns the value of attribute region.



5
6
7
# File 'lib/applitools/selenium/visual_grid/vg_region.rb', line 5

def region
  @region
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/applitools/selenium/visual_grid/vg_region.rb', line 11

def to_s
  region.inspect
end