Module: Applitools::FluentInterface
- Includes:
- MatchLevelSetter
- Defined in:
- lib/applitools/core/fluent_interface.rb
Instance Method Summary collapse
- #ignore_caret(value = false) ⇒ 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
Instance Method Details
#ignore_caret(value = false) ⇒ Object
4 5 6 7 |
# File 'lib/applitools/core/fluent_interface.rb', line 4 def ignore_caret(value = false) [:ignore_caret] = value ? true : false self end |
#ignore_mismatch(value) ⇒ Object
19 20 21 22 |
# File 'lib/applitools/core/fluent_interface.rb', line 19 def ignore_mismatch(value) [:ignore_mismatch] = value ? true : false self end |
#match_level(value, exact_options = {}) ⇒ Target
Sets match_level for current test
33 34 35 36 |
# File 'lib/applitools/core/fluent_interface.rb', line 33 def match_level(value, = {}) [:match_level], [:exact] = match_level_with_exact(value, ) self end |
#timeout(value) ⇒ Object
9 10 11 12 |
# File 'lib/applitools/core/fluent_interface.rb', line 9 def timeout(value) [:timeout] = value.to_i self end |
#trim(value = true) ⇒ Object
14 15 16 17 |
# File 'lib/applitools/core/fluent_interface.rb', line 14 def trim(value = true) [:trim] = value ? true : false self end |