Class: Do::Systemd::OpenStructish

Inherits:
Object
  • Object
show all
Defined in:
lib/do/systemd.rb

Overview

Minimal result holder so tests and callers share one shape.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#errObject (readonly)

Returns the value of attribute err.



189
190
191
# File 'lib/do/systemd.rb', line 189

def err
  @err
end

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



189
190
191
# File 'lib/do/systemd.rb', line 189

def exitstatus
  @exitstatus
end

#outObject (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

Returns:

  • (Boolean)


198
199
200
# File 'lib/do/systemd.rb', line 198

def success?
  @success
end