Class: Liri::Common::ManagerData

Inherits:
Object
  • Object
show all
Defined in:
lib/common/manager_data.rb

Overview

Esta clase guarda los datos del Manager

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tests_results_folder_path:, compressed_file_path:, user:, password:) ⇒ ManagerData

Returns a new instance of ManagerData.



13
14
15
16
17
18
# File 'lib/common/manager_data.rb', line 13

def initialize(tests_results_folder_path:, compressed_file_path:, user:, password:)
  @tests_results_folder_path = tests_results_folder_path
  @compressed_file_path = compressed_file_path
  @user = user
  @password = password
end

Instance Attribute Details

#compressed_file_pathObject

Returns the value of attribute compressed_file_path.



11
12
13
# File 'lib/common/manager_data.rb', line 11

def compressed_file_path
  @compressed_file_path
end

#passwordObject

Returns the value of attribute password.



11
12
13
# File 'lib/common/manager_data.rb', line 11

def password
  @password
end

#tests_results_folder_pathObject

Returns the value of attribute tests_results_folder_path.



11
12
13
# File 'lib/common/manager_data.rb', line 11

def tests_results_folder_path
  @tests_results_folder_path
end

#userObject

Returns the value of attribute user.



11
12
13
# File 'lib/common/manager_data.rb', line 11

def user
  @user
end

Instance Method Details

#to_hObject



20
21
22
23
24
25
26
27
# File 'lib/common/manager_data.rb', line 20

def to_h
  {
    tests_results_folder_path: @tests_results_folder_path,
    compressed_file_path: @compressed_file_path,
    user: @user,
    password: @password
  }
end