Class: Disloku::SysCmdResult

Inherits:
Object
  • Object
show all
Defined in:
lib/disloku/SysCmdResult.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output, result) ⇒ SysCmdResult

Returns a new instance of SysCmdResult.



6
7
8
9
10
# File 'lib/disloku/SysCmdResult.rb', line 6

def initialize(output, result)
	@output = output
	@result = result
	@exitCode = result.to_i()
end

Instance Attribute Details

#exitCodeObject

Returns the value of attribute exitCode.



5
6
7
# File 'lib/disloku/SysCmdResult.rb', line 5

def exitCode
  @exitCode
end

#outputObject

Returns the value of attribute output.



5
6
7
# File 'lib/disloku/SysCmdResult.rb', line 5

def output
  @output
end

#resultObject

Returns the value of attribute result.



5
6
7
# File 'lib/disloku/SysCmdResult.rb', line 5

def result
  @result
end