Class: Applitools::SessionStartInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @agent_id = options[:agent_id]
  @app_id_or_name = options[:app_id_or_name]
  @ver_id = options[:ver_id]
  @scenario_id_or_name = options[:scenario_id_or_name]
  @batch_info = options[:batch_info]
  @env_name = options[:env_name]
  @environment = options[:environment]
  @default_match_settings = options[:default_match_settings]
  @branch_name = options[:branch_name]
  @parent_branch_name = options[:parent_branch_name]
  @properties = options[:properties]
  @compare_with_parent_branch = options[:compare_with_parent_branch]
end

Instance Attribute Details

#app_id_or_nameObject

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_nameObject

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_hashObject



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