Class: IntegrationSettings

Inherits:
Object
  • Object
show all
Defined in:
lib/params/integration_settings.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dns, username, password, details = nil, project_server = nil, project_server_id = nil) ⇒ IntegrationSettings

Returns a new instance of IntegrationSettings.



9
10
11
12
13
14
15
16
# File 'lib/params/integration_settings.rb', line 9

def initialize(dns, username, password, details = nil, project_server = nil, project_server_id = nil)
  @dns = dns
  @username = username
  @password = password
  @details = details
  @project_server = project_server
  @project_server_id = project_server_id
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



7
8
9
# File 'lib/params/integration_settings.rb', line 7

def details
  @details
end

#dnsObject (readonly)

Returns the value of attribute dns.



4
5
6
# File 'lib/params/integration_settings.rb', line 4

def dns
  @dns
end

#passwordObject (readonly)

Returns the value of attribute password.



6
7
8
# File 'lib/params/integration_settings.rb', line 6

def password
  @password
end

#project_serverObject (readonly)

Returns the value of attribute project_server.



2
3
4
# File 'lib/params/integration_settings.rb', line 2

def project_server
  @project_server
end

#project_server_idObject (readonly)

Returns the value of attribute project_server_id.



3
4
5
# File 'lib/params/integration_settings.rb', line 3

def project_server_id
  @project_server_id
end

#usernameObject (readonly)

Returns the value of attribute username.



5
6
7
# File 'lib/params/integration_settings.rb', line 5

def username
  @username
end

Instance Method Details

#to_paramsObject



18
19
20
21
22
23
24
25
26
# File 'lib/params/integration_settings.rb', line 18

def to_params
  params = {}
  params["SS_integration_dns"] = @dns
  params["SS_integration_username"] = @username
  params["SS_integration_password"] = @password
  params["SS_integration_details"] = @details

  params
end