Class: Applitools::EyesRunner

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

Direct Known Subclasses

ClassicRunner

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEyesRunner

Returns a new instance of EyesRunner.



5
6
7
# File 'lib/applitools/core/eyes_runner.rb', line 5

def initialize()
  self.batches_server_connectors_map = {}
end

Instance Attribute Details

#batches_server_connectors_mapObject

Returns the value of attribute batches_server_connectors_map.



3
4
5
# File 'lib/applitools/core/eyes_runner.rb', line 3

def batches_server_connectors_map
  @batches_server_connectors_map
end

Instance Method Details

#add_batch(batch_id, &block) ⇒ Object



9
10
11
12
# File 'lib/applitools/core/eyes_runner.rb', line 9

def add_batch(batch_id, &block)
  puts batch_id
  batches_server_connectors_map[batch_id] ||= block if block_given?
end

#delete_all_batchesObject



14
15
16
# File 'lib/applitools/core/eyes_runner.rb', line 14

def delete_all_batches
  batches_server_connectors_map.each_value { |v| v.call if v.respond_to? :call }
end