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.
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_map ⇒ Object
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_batches ⇒ Object
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 |