Class: Applitools::SessionStartInfo
- Inherits:
-
Object
- Object
- Applitools::SessionStartInfo
- Defined in:
- lib/applitools/core/session_start_info.rb
Instance Attribute Summary collapse
-
#app_id_or_name ⇒ Object
Returns the value of attribute app_id_or_name.
-
#scenario_id_or_name ⇒ Object
Returns the value of attribute scenario_id_or_name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ SessionStartInfo
constructor
A new instance of SessionStartInfo.
- #to_hash ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ SessionStartInfo
Returns a new instance of SessionStartInfo.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/applitools/core/session_start_info.rb', line 7 def initialize( = {}) @agent_id = [:agent_id] @app_id_or_name = [:app_id_or_name] @ver_id = [:ver_id] @scenario_id_or_name = [:scenario_id_or_name] @batch_info = [:batch_info] @env_name = [:env_name] @environment = [:environment] @default_match_settings = [:default_match_settings] @branch_name = [:branch_name] @parent_branch_name = [:parent_branch_name] @properties = [:properties] @compare_with_parent_branch = [:compare_with_parent_branch] end |
Instance Attribute Details
#app_id_or_name ⇒ Object
Returns the value of attribute app_id_or_name.
5 6 7 |
# File 'lib/applitools/core/session_start_info.rb', line 5 def app_id_or_name @app_id_or_name end |
#scenario_id_or_name ⇒ Object
Returns the value of attribute scenario_id_or_name.
5 6 7 |
# File 'lib/applitools/core/session_start_info.rb', line 5 def scenario_id_or_name @scenario_id_or_name end |
Instance Method Details
#to_hash ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/applitools/core/session_start_info.rb', line 22 def to_hash { agent_id: @agent_id, app_id_or_name: @app_id_or_name, ver_id: @ver_id, scenario_id_or_name: @scenario_id_or_name, batch_info: @batch_info && @batch_info.to_hash, env_name: @env_name, environment: @environment.to_hash, default_match_settings: @default_match_settings, branch_name: @branch_name, parent_branch_name: @parent_branch_name, compare_with_parent_branch: @compare_with_parent_branch, properties: @properties } end |