Class: Applitools::StartInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/eyes_selenium_ruby/eyes/start_info.rb

Constant Summary collapse

ATTRIBUTES =
%w[ agent_id app_id_or_name ver_id scenario_id_or_name batch_info
environment application match_level branch_name parent_branch_name ]

Instance Method Summary collapse

Constructor Details

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

add a config file with this stuff, and use hash arg



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/eyes_selenium_ruby/eyes/start_info.rb', line 11

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

Instance Method Details

#to_hashObject



26
27
28
29
30
31
32
33
# File 'lib/eyes_selenium_ruby/eyes/start_info.rb', line 26

def to_hash
  {  
    AgentId: agent_id, AppIdOrName: app_id_or_name, VerId: ver_id, ScenarioIdOrName: scenario_id_or_name,
    BatchInfo: batch_info.to_hash, Environment: environment.to_hash, 
    Application: application.to_hash, matchLevel: match_level, branchName: branch_name,
    parentBranchName: parent_branch_name
  }
end