Class: Applitools::SessionStartInfo

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

Instance Method Summary collapse

Methods included from Jsonable

included, #json, #json_data

Constructor Details

#initialize(options = {}) ⇒ SessionStartInfo

Returns a new instance of SessionStartInfo.



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/applitools/core/session_start_info.rb', line 14

def initialize(options = {})
  self.agent_id = options[:agent_id]
  self.app_id_or_name = options[:app_id_or_name]
  self.ver_id = options[:ver_id]
  self.scenario_id_or_name = options[:scenario_id_or_name]
  self.batch_info = options[:batch_info]
  self.environment_name = options[:environment_name]
  self.baseline_env_name = options[:baseline_env_name]
  self.environment = options[:environment]
  self.default_match_settings = options[:default_match_settings]
  self.branch_name = options[:branch_name]
  self.parent_branch_name = options[:parent_branch_name]
  self.properties = options[:properties]
  self.compare_with_parent_branch = options[:compare_with_parent_branch]
  self.save_diffs = options[:save_diffs]
  self.session_type = options[:session_type]
  self.baseline_branch_name = options[:baseline_branch_name]
  self.agentRunId = options[:agent_run_id] if options[:agent_run_id]
end

Instance Method Details

#to_hashObject



34
35
36
# File 'lib/applitools/core/session_start_info.rb', line 34

def to_hash
  json_data
end