Class: RubySSH::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-ssh/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Result



5
6
7
8
# File 'lib/ruby-ssh/result.rb', line 5

def initialize(args = {})
  @stdout = args[:stdout]
  @exit_status = args[:exit_status]
end

Instance Attribute Details

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



3
4
5
# File 'lib/ruby-ssh/result.rb', line 3

def exit_status
  @exit_status
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



3
4
5
# File 'lib/ruby-ssh/result.rb', line 3

def stdout
  @stdout
end