Class: TRMNLP::TransformClient::Result
- Inherits:
-
Data
- Object
- Data
- TRMNLP::TransformClient::Result
- Defined in:
- lib/trmnlp/transform_client.rb
Overview
Mirrors the remote daemon’s ExecResponse. ‘output` is the canonical JSON result; `stdout` carries user prints.
Instance Attribute Summary collapse
-
#duration_ms ⇒ Object
readonly
Returns the value of attribute duration_ms.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
Instance Attribute Details
#duration_ms ⇒ Object (readonly)
Returns the value of attribute duration_ms
13 14 15 |
# File 'lib/trmnlp/transform_client.rb', line 13 def duration_ms @duration_ms end |
#error ⇒ Object (readonly)
Returns the value of attribute error
13 14 15 |
# File 'lib/trmnlp/transform_client.rb', line 13 def error @error end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code
13 14 15 |
# File 'lib/trmnlp/transform_client.rb', line 13 def exit_code @exit_code end |
#output ⇒ Object (readonly)
Returns the value of attribute output
13 14 15 |
# File 'lib/trmnlp/transform_client.rb', line 13 def output @output end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr
13 14 15 |
# File 'lib/trmnlp/transform_client.rb', line 13 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout
13 14 15 |
# File 'lib/trmnlp/transform_client.rb', line 13 def stdout @stdout end |
Instance Method Details
#success? ⇒ Boolean
14 |
# File 'lib/trmnlp/transform_client.rb', line 14 def success? = error.nil? && exit_code.zero? |