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
825 826 827 828 |
# File 'lib/applitools/core/eyes_base.rb', line 825 def add(trigger) raise Applitools::EyesIllegalArgument.new 'trigger must be kind of Trigger!' unless trigger.is_a? Trigger self << trigger end |
#to_hash ⇒ Object
830 831 832 833 834 |
# File 'lib/applitools/core/eyes_base.rb', line 830 def to_hash map do |trigger| trigger.to_hash if trigger.respond_to? :to_hash end.compact end |