Class: NSICloudooo::Client::Configuration
- Inherits:
-
Object
- Object
- NSICloudooo::Client::Configuration
- Defined in:
- lib/nsicloudooo/configuration.rb
Class Method Summary collapse
-
.host(host = nil) ⇒ String
Set the default NSICloudooo::Client host.
-
.password(password = nil) ⇒ String
Set the default NSICloudooo::Client password.
-
.port(port = nil) ⇒ String
Set the default NSICloudooo::Client port.
-
.settings ⇒ Hash
See how are the settings.
-
.user(user = nil) ⇒ String
Set the default NSICloudooo::Client user.
Class Method Details
.host(host = nil) ⇒ String
Set the default NSICloudooo::Client host
33 34 35 36 |
# File 'lib/nsicloudooo/configuration.rb', line 33 def host(host = nil) @host = host unless host.nil? @host end |
.password(password = nil) ⇒ String
Set the default NSICloudooo::Client password
22 23 24 25 |
# File 'lib/nsicloudooo/configuration.rb', line 22 def password(password = nil) @password = password unless password.nil? @password end |
.port(port = nil) ⇒ String
Set the default NSICloudooo::Client port
44 45 46 47 |
# File 'lib/nsicloudooo/configuration.rb', line 44 def port(port = nil) @port = port unless port.nil? @port end |
.settings ⇒ Hash
See how are the settings
52 53 54 |
# File 'lib/nsicloudooo/configuration.rb', line 52 def settings {user: @user, password: @password, host: @host, port: @port} end |
.user(user = nil) ⇒ String
Set the default NSICloudooo::Client user
11 12 13 14 |
# File 'lib/nsicloudooo/configuration.rb', line 11 def user(user = nil) @user = user unless user.nil? @user end |