Class: Ridley::Mixin::ShellOut::Response
- Inherits:
-
Object
- Object
- Ridley::Mixin::ShellOut::Response
- Extended by:
- Forwardable
- Defined in:
- lib/ridley/mixin/shell_out.rb
Instance Attribute Summary collapse
- #stderr ⇒ String readonly
- #stdout ⇒ String readonly
Instance Method Summary collapse
- #error? ⇒ Boolean (also: #failure?)
-
#initialize(process_status, stdout, stderr) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(process_status, stdout, stderr) ⇒ Response
Returns a new instance of Response.
22 23 24 25 26 |
# File 'lib/ridley/mixin/shell_out.rb', line 22 def initialize(process_status, stdout, stderr) @process_status = process_status @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#stderr ⇒ String (readonly)
11 12 13 |
# File 'lib/ridley/mixin/shell_out.rb', line 11 def stderr @stderr end |
#stdout ⇒ String (readonly)
9 10 11 |
# File 'lib/ridley/mixin/shell_out.rb', line 9 def stdout @stdout end |
Instance Method Details
#error? ⇒ Boolean Also known as: failure?
28 29 30 |
# File 'lib/ridley/mixin/shell_out.rb', line 28 def error? !success? end |