Class: Applitools::TargetApp
- Inherits:
-
Object
- Object
- Applitools::TargetApp
- Defined in:
- lib/eyes_selenium_ruby/eyes/target_app.rb
Instance Attribute Summary collapse
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user_agent ⇒ Object
readonly
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize(url, session_id, user_agent) ⇒ TargetApp
constructor
A new instance of TargetApp.
- #to_hash ⇒ Object
Constructor Details
#initialize(url, session_id, user_agent) ⇒ TargetApp
Returns a new instance of TargetApp.
5 6 7 8 9 |
# File 'lib/eyes_selenium_ruby/eyes/target_app.rb', line 5 def initialize(url, session_id, user_agent) @url = url @session_id = session_id @user_agent = user_agent end |
Instance Attribute Details
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id.
3 4 5 |
# File 'lib/eyes_selenium_ruby/eyes/target_app.rb', line 3 def session_id @session_id end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/eyes_selenium_ruby/eyes/target_app.rb', line 3 def url @url end |
#user_agent ⇒ Object (readonly)
Returns the value of attribute user_agent.
3 4 5 |
# File 'lib/eyes_selenium_ruby/eyes/target_app.rb', line 3 def user_agent @user_agent end |
Instance Method Details
#to_hash ⇒ Object
11 12 13 14 15 16 |
# File 'lib/eyes_selenium_ruby/eyes/target_app.rb', line 11 def to_hash { "$type" => "Applitools.Framework.TargetWebDriverApplication, Core", url: URI.encode(url.to_s), sessionId: session_id, userAgent: user_agent } end |