Class: DInstallerCli::InstallConfig::User
- Inherits:
-
Object
- Object
- DInstallerCli::InstallConfig::User
- Defined in:
- lib/dinstaller_cli/install_config.rb
Overview
Class to represent the user config
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, fullname: nil, password: nil, autologin: false) ⇒ User
constructor
Constructor.
-
#to_h ⇒ Hash
Converts the settings to hash.
Constructor Details
#initialize(name: nil, fullname: nil, password: nil, autologin: false) ⇒ User
Constructor
100 101 102 103 104 105 |
# File 'lib/dinstaller_cli/install_config.rb', line 100 def initialize(name: nil, fullname: nil, password: nil, autologin: false) @name = name @fullname = fullname @password = password @autologin = autologin end |
Instance Attribute Details
#autologin ⇒ Object
92 93 94 |
# File 'lib/dinstaller_cli/install_config.rb', line 92 def autologin @autologin end |
#fullname ⇒ Object
86 87 88 |
# File 'lib/dinstaller_cli/install_config.rb', line 86 def fullname @fullname end |
#name ⇒ Object
83 84 85 |
# File 'lib/dinstaller_cli/install_config.rb', line 83 def name @name end |
#password ⇒ Object
89 90 91 |
# File 'lib/dinstaller_cli/install_config.rb', line 89 def password @password end |
Instance Method Details
#to_h ⇒ Hash
Converts the settings to hash
110 111 112 113 114 115 116 117 |
# File 'lib/dinstaller_cli/install_config.rb', line 110 def to_h { "name" => name, "fullname" => fullname, "autologin" => autologin, "password" => password } end |