Class: Applitools::EyesRunner
- Inherits:
-
Object
- Object
- Applitools::EyesRunner
- Defined in:
- lib/applitools/core/eyes_runner.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#batches_server_connectors_map ⇒ Object
Returns the value of attribute batches_server_connectors_map.
Instance Method Summary collapse
- #add_batch(batch_id, &block) ⇒ Object
- #delete_all_batches ⇒ Object
-
#initialize ⇒ EyesRunner
constructor
A new instance of EyesRunner.
Constructor Details
#initialize ⇒ EyesRunner
Returns a new instance of EyesRunner.
7 8 9 |
# File 'lib/applitools/core/eyes_runner.rb', line 7 def initialize self.batches_server_connectors_map = {} end |
Instance Attribute Details
#batches_server_connectors_map ⇒ Object
Returns the value of attribute batches_server_connectors_map.
5 6 7 |
# File 'lib/applitools/core/eyes_runner.rb', line 5 def batches_server_connectors_map @batches_server_connectors_map end |
Instance Method Details
#add_batch(batch_id, &block) ⇒ Object
11 12 13 |
# File 'lib/applitools/core/eyes_runner.rb', line 11 def add_batch(batch_id, &block) batches_server_connectors_map[batch_id] ||= block if block_given? end |
#delete_all_batches ⇒ Object
15 16 17 |
# File 'lib/applitools/core/eyes_runner.rb', line 15 def delete_all_batches batches_server_connectors_map.each_value { |v| v.call if v.respond_to? :call } end |