Class: Sheller::ShellerResult
- Inherits:
-
Object
- Object
- Sheller::ShellerResult
- Defined in:
- lib/sheller.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(stdout, stderr, exit_status, command) ⇒ ShellerResult
constructor
A new instance of ShellerResult.
Constructor Details
#initialize(stdout, stderr, exit_status, command) ⇒ ShellerResult
Returns a new instance of ShellerResult.
61 62 63 64 65 66 |
# File 'lib/sheller.rb', line 61 def initialize(stdout, stderr, exit_status, command) @stdout = stdout @stderr = stderr @exit_status = exit_status @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
59 60 61 |
# File 'lib/sheller.rb', line 59 def command @command end |
#exit_status ⇒ Object (readonly)
Returns the value of attribute exit_status.
59 60 61 |
# File 'lib/sheller.rb', line 59 def exit_status @exit_status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
59 60 61 |
# File 'lib/sheller.rb', line 59 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
59 60 61 |
# File 'lib/sheller.rb', line 59 def stdout @stdout end |