Class: Pdi::Executor::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/pdi/executor/status.rb

Overview

General return object for describing the operating system return data.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



16
17
18
# File 'lib/pdi/executor/status.rb', line 16

def code
  @code
end

#errObject (readonly)

Returns the value of attribute err.



16
17
18
# File 'lib/pdi/executor/status.rb', line 16

def err
  @err
end

#outObject (readonly)

Returns the value of attribute out.



16
17
18
# File 'lib/pdi/executor/status.rb', line 16

def out
  @out
end

#pidObject (readonly)

Returns the value of attribute pid.



16
17
18
# File 'lib/pdi/executor/status.rb', line 16

def pid
  @pid
end