Module: Applitools::FluentInterface
- Includes:
- MatchLevelSetter
- Defined in:
- lib/applitools/core/fluent_interface.rb
Class Method Summary collapse
Instance Method Summary collapse
- #enable_patterns(value = true) ⇒ Object
- #ignore_caret(value = true) ⇒ Object
- #ignore_displacements(value = true) ⇒ Object
- #ignore_mismatch(value) ⇒ Object
-
#match_level(value, exact_options = {}) ⇒ Target
Sets match_level for current test.
- #timeout(value) ⇒ Object
- #trim(value = true) ⇒ Object
Methods included from MatchLevelSetter
Class Method Details
.included(base) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/applitools/core/fluent_interface.rb', line 7 def self.included(base) base.define_singleton_method(:===) do |other| return name == other if other.is_a? String super(other) end end |
Instance Method Details
#enable_patterns(value = true) ⇒ Object
53 54 55 56 |
# File 'lib/applitools/core/fluent_interface.rb', line 53 def enable_patterns(value = true) [:enable_patterns] = value ? true : false self end |
#ignore_caret(value = true) ⇒ Object
14 15 16 17 |
# File 'lib/applitools/core/fluent_interface.rb', line 14 def ignore_caret(value = true) [:ignore_caret] = value ? true : false self end |
#ignore_displacements(value = true) ⇒ Object
19 20 21 22 |
# File 'lib/applitools/core/fluent_interface.rb', line 19 def ignore_displacements(value = true) [:ignore_displacements] = value ? true : false self end |
#ignore_mismatch(value) ⇒ Object
34 35 36 37 |
# File 'lib/applitools/core/fluent_interface.rb', line 34 def ignore_mismatch(value) [:ignore_mismatch] = value ? true : false self end |
#match_level(value, exact_options = {}) ⇒ Target
Sets match_level for current test
48 49 50 51 |
# File 'lib/applitools/core/fluent_interface.rb', line 48 def match_level(value, = {}) [:match_level], [:exact] = match_level_with_exact(value, ) self end |
#timeout(value) ⇒ Object
24 25 26 27 |
# File 'lib/applitools/core/fluent_interface.rb', line 24 def timeout(value) [:timeout] = value.to_i self end |
#trim(value = true) ⇒ Object
29 30 31 32 |
# File 'lib/applitools/core/fluent_interface.rb', line 29 def trim(value = true) [:trim] = value ? true : false self end |