class Applitools::MatchWindowData

Attributes

app_output[R]
ignore_mismatch[R]
screenshot[R]
tag[R]
user_inputs[R]

Public Class Methods

new(app_output,user_inputs=[], tag, ignore_mismatch, screenshot) click to toggle source
# File lib/eyes_selenium_ruby/eyes/match_window_data.rb, line 4
def initialize(app_output,user_inputs=[], tag, ignore_mismatch, screenshot)
  @user_inputs = user_inputs
  @app_output = app_output
  @tag = tag
  @ignore_mismatch = ignore_mismatch
  @screenshot = screenshot
end

Public Instance Methods

to_hash() click to toggle source

IMPORTANT This method returns a hash WITHOUT the screenshot property. This is on purspose! The screenshot should not be included as part of the json.

# File lib/eyes_selenium_ruby/eyes/match_window_data.rb, line 14
def to_hash
  {userInputs: user_inputs.map(&:to_hash), appOutput: Hash[app_output.each_pair.to_a],
   tag: @tag, ignoreMismatch: @ignore_mismatch}
end