class NSISam::Client::Configuration
Public Class Methods
expire(expire = nil)
click to toggle source
Set the default {NSISam::Client} expire time
@param [Fixnum] expire time to set
@return [Fixnum] the expire set
# File lib/nsisam/configuration.rb, line 55 def expire(expire = nil) @expire = expire unless expire.nil? @expire end
host(host = nil)
click to toggle source
Set the default {NSISam::Client} host
@param [String] host to set
@return [String] the host set
# File lib/nsisam/configuration.rb, line 33 def host(host = nil) @host = host unless host.nil? @host end
password(password = nil)
click to toggle source
Set the default {NSISam::Client} password
@param [String] password to set
@return [String] the password set
# File lib/nsisam/configuration.rb, line 22 def password(password = nil) @password = password unless password.nil? @password end
port(port = nil)
click to toggle source
Set the default {NSISam::Client} port
@param [String] port to set
@return [String] the port set
# File lib/nsisam/configuration.rb, line 44 def port(port = nil) @port = port unless port.nil? @port end
settings()
click to toggle source
See how are the settings
@return [Hash] actual settings
# File lib/nsisam/configuration.rb, line 63 def settings {user: @user, password: @password, host: @host, port: @port, expire: @expire} end
user(user = nil)
click to toggle source
Set the default {NSISam::Client} user
@param [String] user to set
@return [String] the user set
# File lib/nsisam/configuration.rb, line 11 def user(user = nil) @user = user unless user.nil? @user end