Class: Disloku::SysCmdResult
- Inherits:
-
Object
- Object
- Disloku::SysCmdResult
- Defined in:
- lib/disloku/SysCmdResult.rb
Instance Attribute Summary collapse
-
#exitCode ⇒ Object
Returns the value of attribute exitCode.
-
#output ⇒ Object
Returns the value of attribute output.
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(output, result) ⇒ SysCmdResult
constructor
A new instance of SysCmdResult.
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
#exitCode ⇒ Object
Returns the value of attribute exitCode.
5 6 7 |
# File 'lib/disloku/SysCmdResult.rb', line 5 def exitCode @exitCode end |
#output ⇒ Object
Returns the value of attribute output.
5 6 7 |
# File 'lib/disloku/SysCmdResult.rb', line 5 def output @output end |
#result ⇒ Object
Returns the value of attribute result.
5 6 7 |
# File 'lib/disloku/SysCmdResult.rb', line 5 def result @result end |