Class: FFMPEG::Command::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/ffmpeg/command.rb

Overview

Result of a command execution

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



24
25
26
# File 'lib/ffmpeg/command.rb', line 24

def error
  @error
end

#exit_codeObject (readonly)

Returns the value of attribute exit_code

Returns:

  • (Object)

    the current value of exit_code



24
25
26
# File 'lib/ffmpeg/command.rb', line 24

def exit_code
  @exit_code
end

#outputObject (readonly)

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



24
25
26
# File 'lib/ffmpeg/command.rb', line 24

def output
  @output
end

Instance Method Details

#failure?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/ffmpeg/command.rb', line 29

def failure?
  !success?
end

#success?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/ffmpeg/command.rb', line 25

def success?
  exit_code.zero?
end