Class: TRMNLP::TransformClient::Result

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#duration_msObject (readonly)

Returns the value of attribute duration_ms

Returns:

  • (Object)

    the current value of duration_ms



13
14
15
# File 'lib/trmnlp/transform_client.rb', line 13

def duration_ms
  @duration_ms
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



13
14
15
# File 'lib/trmnlp/transform_client.rb', line 13

def error
  @error
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



13
14
15
# File 'lib/trmnlp/transform_client.rb', line 13

def exit_code
  @exit_code
end

#outputObject (readonly)

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



13
14
15
# File 'lib/trmnlp/transform_client.rb', line 13

def output
  @output
end

#stderrObject (readonly)

Returns the value of attribute stderr

Returns:

  • (Object)

    the current value of stderr



13
14
15
# File 'lib/trmnlp/transform_client.rb', line 13

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout

Returns:

  • (Object)

    the current value of stdout



13
14
15
# File 'lib/trmnlp/transform_client.rb', line 13

def stdout
  @stdout
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


14
# File 'lib/trmnlp/transform_client.rb', line 14

def success? = error.nil? && exit_code.zero?