Class: WeasyRb::Executor::Result
- Inherits:
-
Struct
- Object
- Struct
- WeasyRb::Executor::Result
- Defined in:
- lib/weasy_rb/executor.rb
Overview
Result class to encapsulate command execution results
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#exit_status ⇒ Object
Returns the value of attribute exit_status.
-
#output ⇒ Object
Returns the value of attribute output.
-
#success? ⇒ Object
Returns the value of attribute success?.
Instance Method Summary collapse
-
#initialize(success:, output: "", error: "", exit_status: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(success:, output: "", error: "", exit_status: nil) ⇒ Result
Returns a new instance of Result.
10 11 12 |
# File 'lib/weasy_rb/executor.rb', line 10 def initialize(success:, output: "", error: "", exit_status: nil) super(success, output, error, exit_status) end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
9 10 11 |
# File 'lib/weasy_rb/executor.rb', line 9 def error @error end |
#exit_status ⇒ Object
Returns the value of attribute exit_status
9 10 11 |
# File 'lib/weasy_rb/executor.rb', line 9 def exit_status @exit_status end |
#output ⇒ Object
Returns the value of attribute output
9 10 11 |
# File 'lib/weasy_rb/executor.rb', line 9 def output @output end |
#success? ⇒ Object
Returns the value of attribute success?
9 10 11 |
# File 'lib/weasy_rb/executor.rb', line 9
def success?
@success?
end
|