Class: NSISam::Client::Configuration
- Inherits:
-
Object
- Object
- NSISam::Client::Configuration
- Defined in:
- lib/nsisam/configuration.rb
Class Method Summary collapse
-
.expire(expire = nil) ⇒ Fixnum
Set the default NSISam::Client expire time.
-
.host(host = nil) ⇒ String
Set the default NSISam::Client host.
-
.password(password = nil) ⇒ String
Set the default NSISam::Client password.
-
.port(port = nil) ⇒ String
Set the default NSISam::Client port.
-
.settings ⇒ Hash
See how are the settings.
-
.user(user = nil) ⇒ String
Set the default NSISam::Client user.
Class Method Details
.expire(expire = nil) ⇒ Fixnum
Set the default NSISam::Client expire time
55 56 57 58 |
# File 'lib/nsisam/configuration.rb', line 55 def expire(expire = nil) @expire = expire unless expire.nil? @expire end |
.host(host = nil) ⇒ String
Set the default NSISam::Client host
33 34 35 36 |
# File 'lib/nsisam/configuration.rb', line 33 def host(host = nil) @host = host unless host.nil? @host end |
.password(password = nil) ⇒ String
Set the default NSISam::Client password
22 23 24 25 |
# File 'lib/nsisam/configuration.rb', line 22 def password(password = nil) @password = password unless password.nil? @password end |
.port(port = nil) ⇒ String
Set the default NSISam::Client port
44 45 46 47 |
# File 'lib/nsisam/configuration.rb', line 44 def port(port = nil) @port = port unless port.nil? @port end |
.settings ⇒ Hash
See how are the settings
63 64 65 |
# File 'lib/nsisam/configuration.rb', line 63 def settings {user: @user, password: @password, host: @host, port: @port, expire: @expire} end |
.user(user = nil) ⇒ String
Set the default NSISam::Client user
11 12 13 14 |
# File 'lib/nsisam/configuration.rb', line 11 def user(user = nil) @user = user unless user.nil? @user end |