Class: IntegrationSettings
- Inherits:
-
Object
- Object
- IntegrationSettings
- Defined in:
- lib/params/integration_settings.rb
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
-
#dns ⇒ Object
readonly
Returns the value of attribute dns.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#project_server ⇒ Object
readonly
Returns the value of attribute project_server.
-
#project_server_id ⇒ Object
readonly
Returns the value of attribute project_server_id.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(dns, username, password, details = nil, project_server = nil, project_server_id = nil) ⇒ IntegrationSettings
constructor
A new instance of IntegrationSettings.
- #to_params ⇒ Object
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
#details ⇒ Object (readonly)
Returns the value of attribute details.
7 8 9 |
# File 'lib/params/integration_settings.rb', line 7 def details @details end |
#dns ⇒ Object (readonly)
Returns the value of attribute dns.
4 5 6 |
# File 'lib/params/integration_settings.rb', line 4 def dns @dns end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
6 7 8 |
# File 'lib/params/integration_settings.rb', line 6 def password @password end |
#project_server ⇒ Object (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_id ⇒ Object (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 |
#username ⇒ Object (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_params ⇒ Object
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 |