Class: Applitools::Base::StartInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/applitools/base/start_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent_id, app_id_or_name, scenario_id_or_name, batch_info, env_name, environment, match_level, ver_id = nil, branch_name = nil, parent_branch_name = nil) ⇒ StartInfo

Returns a new instance of StartInfo.



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/applitools/base/start_info.rb', line 5

def initialize(agent_id, app_id_or_name, scenario_id_or_name, batch_info, env_name, environment, match_level,
  ver_id = nil, branch_name = nil, parent_branch_name = nil)
  @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
  @match_level = match_level
  @branch_name = branch_name
  @parent_branch_name = parent_branch_name
end

Instance Attribute Details

#app_id_or_nameObject

Returns the value of attribute app_id_or_name.



3
4
5
# File 'lib/applitools/base/start_info.rb', line 3

def app_id_or_name
  @app_id_or_name
end

#scenario_id_or_nameObject

Returns the value of attribute scenario_id_or_name.



3
4
5
# File 'lib/applitools/base/start_info.rb', line 3

def scenario_id_or_name
  @scenario_id_or_name
end

Instance Method Details

#to_hashObject



19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/applitools/base/start_info.rb', line 19

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.to_hash,
    env_name: @env_name,
    environment: @environment.to_hash,
    match_level: @match_level,
    branch_name: @branch_name,
    parent_branch_name: @parent_branch_name
  }
end