Class: Applitools::AppOutput
- Inherits:
-
Object
- Object
- Applitools::AppOutput
- Defined in:
- lib/applitools/core/app_output.rb
Instance Attribute Summary collapse
-
#dom_url ⇒ Object
Returns the value of attribute dom_url.
-
#location ⇒ Object
Returns the value of attribute location.
-
#screenshot64 ⇒ Object
readonly
Returns the value of attribute screenshot64.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, screenshot64) ⇒ AppOutput
constructor
A new instance of AppOutput.
- #to_hash ⇒ Object
Constructor Details
#initialize(title, screenshot64) ⇒ AppOutput
Returns a new instance of AppOutput.
8 9 10 11 12 |
# File 'lib/applitools/core/app_output.rb', line 8 def initialize(title, screenshot64) @title = title @screenshot64 = screenshot64 @location = Applitools::Location::TOP_LEFT end |
Instance Attribute Details
#dom_url ⇒ Object
Returns the value of attribute dom_url.
6 7 8 |
# File 'lib/applitools/core/app_output.rb', line 6 def dom_url @dom_url end |
#location ⇒ Object
Returns the value of attribute location.
5 6 7 |
# File 'lib/applitools/core/app_output.rb', line 5 def location @location end |
#screenshot64 ⇒ Object (readonly)
Returns the value of attribute screenshot64.
5 6 7 |
# File 'lib/applitools/core/app_output.rb', line 5 def screenshot64 @screenshot64 end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/applitools/core/app_output.rb', line 5 def title @title end |
Instance Method Details
#to_hash ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/applitools/core/app_output.rb', line 19 def to_hash result = { Title: title, Screenshot64: nil, Location: location.to_hash } result[:DomUrl] = dom_url if dom_url result end |