Class: Pdi::Executor::Status
- Inherits:
-
Object
- Object
- Pdi::Executor::Status
- Defined in:
- lib/pdi/executor/status.rb
Overview
General return object for describing the operating system return data.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
Instance Method Summary collapse
-
#initialize(code:, out: '', err: '', pid:) ⇒ Status
constructor
A new instance of Status.
Constructor Details
#initialize(code:, out: '', err: '', pid:) ⇒ Status
18 19 20 21 22 23 24 25 |
# File 'lib/pdi/executor/status.rb', line 18 def initialize(code:, out: '', err: '', pid:) @code = code @out = out @err = err @pid = pid freeze end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
16 17 18 |
# File 'lib/pdi/executor/status.rb', line 16 def code @code end |
#err ⇒ Object (readonly)
Returns the value of attribute err.
16 17 18 |
# File 'lib/pdi/executor/status.rb', line 16 def err @err end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
16 17 18 |
# File 'lib/pdi/executor/status.rb', line 16 def out @out end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
16 17 18 |
# File 'lib/pdi/executor/status.rb', line 16 def pid @pid end |