Class: NetVbox::SshConnectionInfo
- Inherits:
-
Object
- Object
- NetVbox::SshConnectionInfo
- Defined in:
- lib/netvbox/vm.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(hostname, username, password) ⇒ SshConnectionInfo
constructor
A new instance of SshConnectionInfo.
Constructor Details
#initialize(hostname, username, password) ⇒ SshConnectionInfo
Returns a new instance of SshConnectionInfo.
8 9 10 11 12 |
# File 'lib/netvbox/vm.rb', line 8 def initialize(hostname, username, password) @hostname = hostname @username = username @password = password end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
6 7 8 |
# File 'lib/netvbox/vm.rb', line 6 def hostname @hostname end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
6 7 8 |
# File 'lib/netvbox/vm.rb', line 6 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
6 7 8 |
# File 'lib/netvbox/vm.rb', line 6 def username @username end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 17 18 |
# File 'lib/netvbox/vm.rb', line 14 def ==(other) self.hostname == other.hostname && self.username == other.username && self.password == other.password end |