Class: Applitools::StartInfo
- Inherits:
-
Object
- Object
- Applitools::StartInfo
- Defined in:
- lib/eyes_selenium/eyes/start_info.rb
Constant Summary collapse
- ATTRIBUTES =
%w[ agent_id app_id_or_name scenario_id_or_name batch_info env_name environment match_level ver_id branch_name parent_branch_name ]
Instance Method Summary collapse
-
#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
constructor
add a config file with this stuff, and use hash arg.
- #to_hash ⇒ Object
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
add a config file with this stuff, and use hash arg
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/eyes_selenium/eyes/start_info.rb', line 11 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 Method Details
#to_hash ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/eyes_selenium/eyes/start_info.rb', line 25 def to_hash { AgentId: agent_id, AppIdOrName: app_id_or_name, VerId: ver_id, ScenarioIdOrName: scenario_id_or_name, BatchInfo: batch_info.to_hash, EnvName: env_name, Environment: environment.to_hash, matchLevel: match_level, branchName: branch_name, parentBranchName: parent_branch_name } end |