Class: PolySSH::NodeEntry
- Inherits:
-
Object
- Object
- PolySSH::NodeEntry
- Includes:
- Visitable
- Defined in:
- lib/polyssh/node.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#host ⇒ Object
Returns the value of attribute host.
-
#next ⇒ Object
Returns the value of attribute next.
-
#port ⇒ Object
Returns the value of attribute port.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user:, host:, port: nil, args: nil) ⇒ NodeEntry
constructor
A new instance of NodeEntry.
Methods included from Visitable
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
#args ⇒ Object
Returns the value of attribute args.
41 42 43 |
# File 'lib/polyssh/node.rb', line 41 def args @args end |
#host ⇒ Object
Returns the value of attribute host.
38 39 40 |
# File 'lib/polyssh/node.rb', line 38 def host @host end |
#next ⇒ Object
Returns the value of attribute next.
40 41 42 |
# File 'lib/polyssh/node.rb', line 40 def next @next end |
#port ⇒ Object
Returns the value of attribute port.
36 37 38 |
# File 'lib/polyssh/node.rb', line 36 def port @port end |
#user ⇒ Object
Returns the value of attribute user.
37 38 39 |
# File 'lib/polyssh/node.rb', line 37 def user @user end |