Class: Applitools::AppOutputWithScreenshot

Inherits:
Object
  • Object
show all
Defined in:
lib/applitools/core/app_output_with_screenshot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_output, screenshot) ⇒ AppOutputWithScreenshot

Returns a new instance of AppOutputWithScreenshot.



5
6
7
8
9
10
11
12
# File 'lib/applitools/core/app_output_with_screenshot.rb', line 5

def initialize(app_output, screenshot)
  raise Applitools::EyesIllegalArgument.new 'app_output is not kind of Applitools::AppOutput' unless
      app_output.is_a? Applitools::AppOutput
  raise Applitools::EyesIllegalArgument.new 'screenshot is not kind of Applitools::EyesScreenshot' unless
      screenshot.is_a? Applitools::EyesScreenshot
  @app_output = app_output
  @screenshot = screenshot
end

Instance Attribute Details

#app_outputObject (readonly)

Returns the value of attribute app_output.



3
4
5
# File 'lib/applitools/core/app_output_with_screenshot.rb', line 3

def app_output
  @app_output
end

#screenshotObject (readonly)

Returns the value of attribute screenshot.



3
4
5
# File 'lib/applitools/core/app_output_with_screenshot.rb', line 3

def screenshot
  @screenshot
end

Instance Method Details

#to_hashObject



14
15
16
# File 'lib/applitools/core/app_output_with_screenshot.rb', line 14

def to_hash
  app_output.to_hash
end

#to_sObject



18
19
20
# File 'lib/applitools/core/app_output_with_screenshot.rb', line 18

def to_s
  app_output.to_hash.to_s
end