Class: Applitools::EyesBase::UserInputArray
- Inherits:
-
Array
- Object
- Array
- Applitools::EyesBase::UserInputArray
- Defined in:
- lib/applitools/core/eyes_base.rb
Instance Method Summary collapse
Instance Method Details
#add(trigger) ⇒ Object
824 825 826 827 |
# File 'lib/applitools/core/eyes_base.rb', line 824 def add(trigger) raise Applitools::EyesIllegalArgument.new 'trigger must be kind of Trigger!' unless trigger.is_a? Trigger self << trigger end |
#to_hash ⇒ Object
829 830 831 832 833 |
# File 'lib/applitools/core/eyes_base.rb', line 829 def to_hash map do |trigger| trigger.to_hash if trigger.respond_to? :to_hash end.compact end |