Class: Do::Systemd::OpenStructish
- Inherits:
-
Object
- Object
- Do::Systemd::OpenStructish
- Defined in:
- lib/do/systemd.rb
Overview
Minimal result holder so tests and callers share one shape.
Instance Attribute Summary collapse
-
#err ⇒ Object
readonly
Returns the value of attribute err.
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Instance Method Summary collapse
-
#initialize(exitstatus, out, err, success) ⇒ OpenStructish
constructor
A new instance of OpenStructish.
- #success? ⇒ Boolean
Constructor Details
#initialize(exitstatus, out, err, success) ⇒ OpenStructish
Returns a new instance of OpenStructish.
191 192 193 194 195 196 |
# File 'lib/do/systemd.rb', line 191 def initialize(exitstatus, out, err, success) @exitstatus = exitstatus @out = out @err = err @success = success end |
Instance Attribute Details
#err ⇒ Object (readonly)
Returns the value of attribute err.
189 190 191 |
# File 'lib/do/systemd.rb', line 189 def err @err end |
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
189 190 191 |
# File 'lib/do/systemd.rb', line 189 def exitstatus @exitstatus end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
189 190 191 |
# File 'lib/do/systemd.rb', line 189 def out @out end |
Instance Method Details
#success? ⇒ Boolean
198 199 200 |
# File 'lib/do/systemd.rb', line 198 def success? @success end |