Class: NetVbox::SshConnectionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/netvbox/vm.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#hostnameObject (readonly)

Returns the value of attribute hostname.



6
7
8
# File 'lib/netvbox/vm.rb', line 6

def hostname
  @hostname
end

#passwordObject (readonly)

Returns the value of attribute password.



6
7
8
# File 'lib/netvbox/vm.rb', line 6

def password
  @password
end

#usernameObject (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