Class: PolySSH::NodeEntry

Inherits:
Object
  • Object
show all
Includes:
Visitable
Defined in:
lib/polyssh/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Visitable

#accept

Constructor Details

#initialize(user:, host:, port: nil, args: nil) ⇒ NodeEntry

Returns a new instance of NodeEntry.



43
44
45
46
47
48
49
50
51
# File 'lib/polyssh/node.rb', line 43

def initialize(user:, host:, port: nil, args: nil)
	@user = user
	@host = host
	@port = port || 22
	@args = args || []

    # Linked list part
	@next = nil
end

Instance Attribute Details

#argsObject

Returns the value of attribute args.



41
42
43
# File 'lib/polyssh/node.rb', line 41

def args
  @args
end

#hostObject

Returns the value of attribute host.



38
39
40
# File 'lib/polyssh/node.rb', line 38

def host
  @host
end

#nextObject

Returns the value of attribute next.



40
41
42
# File 'lib/polyssh/node.rb', line 40

def next
  @next
end

#portObject

Returns the value of attribute port.



36
37
38
# File 'lib/polyssh/node.rb', line 36

def port
  @port
end

#userObject

Returns the value of attribute user.



37
38
39
# File 'lib/polyssh/node.rb', line 37

def user
  @user
end