Class: FFMPEG::Command::Result
- Inherits:
-
Data
- Object
- Data
- FFMPEG::Command::Result
- Defined in:
- lib/ffmpeg/command.rb
Overview
Result of a command execution
Instance Attribute Summary collapse
-
#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.
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
24 25 26 |
# File 'lib/ffmpeg/command.rb', line 24 def error @error end |
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code
24 25 26 |
# File 'lib/ffmpeg/command.rb', line 24 def exit_code @exit_code end |
#output ⇒ Object (readonly)
Returns the value of attribute output
24 25 26 |
# File 'lib/ffmpeg/command.rb', line 24 def output @output end |
Instance Method Details
#failure? ⇒ Boolean
29 30 31 |
# File 'lib/ffmpeg/command.rb', line 29 def failure? !success? end |
#success? ⇒ Boolean
25 26 27 |
# File 'lib/ffmpeg/command.rb', line 25 def success? exit_code.zero? end |